php self -1?
Posted: Fri Mar 12, 2010 3:51 pm
Hey just a quick question for anyone who knows, currently I am using a PHP_SELF to redirect users on login however it kind of backfires on one page. I noticed this forum has it so that if you are in a topic, you click to login, then it does not redirect to the index or login page but to the topic itself. Does anyone know how to accomplish this. Currently I am using the following script and on my login page it just redirects me to my login page. Also, when I have multiple tabs open, on another tab it may direct me to a page I did not intend.
Code: Select all
$this->url = $_SESSION['url'] = $_SERVER['PHP_SELF'];