N
N
Nick Bukovskiy2018-01-17 12:11:01
CodeIgniter
Nick Bukovskiy, 2018-01-17 12:11:01

How to go to find out the link from which the user came?

For example, there is a link to something, the user follows it, gets (redirect) to the "Login" window, logged in and I need to then follow the link that he initially clicked on, and not get to the main one. How to do it? How to get this "original" link?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex McArrow, 2018-01-17
@sonterix

Before the redirect, "remember" HTTP_REFERER - it will contain the path from where the user came from, and after authorization, redirect him to the "saved" path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question