wrathican Posted July 11, 2008 Share Posted July 11, 2008 hey i was just wondering if there is an alternative way of seeing what the referring URI was in php other than HTTP_REFERER. this is mainly because my host does not have that variable enabled. (i think. its not listed when i call phpinfo()) but i would like to provide a bit of simplicity for my users so that if they are trying to access a page where they need to be logged in, they are taken to the login page and the referring URI is kept so i can forward them back to that page when they have successfully logged in. Thanks Quote Link to comment Share on other sites More sharing options...
DarkWater Posted July 11, 2008 Share Posted July 11, 2008 HTTP_REFERER is not reliable. Someone posted a topic JUST like this. It's in the first 3 on this board. Read my post on there. Quote Link to comment Share on other sites More sharing options...
discomatt Posted July 11, 2008 Share Posted July 11, 2008 http://www.phpfreaks.com/forums/index.php/topic,206281.0.html Quote Link to comment Share on other sites More sharing options...
wrathican Posted July 11, 2008 Author Share Posted July 11, 2008 heh, thanks. i was just reading through the manual and i thought 'hang on, couldn't i set a session with the current URI at the end of my scripts?' and apparently i can thanks anyway! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.