Redirect to last page viewed before registration
-
When registration & login is complete, I need to redirect to the last page the user viewed before going to the registration page. Can someone help me with the code?
I’ve tried the following & in all cases, it sends me to the home page which is incorrect.
$_SERVER[HTTP_REFERER];
$_SERVER[‘REQUEST_URI’];
$_SERVER[‘REDIRECT_URL’];
- The topic ‘Redirect to last page viewed before registration’ is closed to new replies.