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 Link to comment https://forums.phpfreaks.com/topic/114312-solved-referring-uri-without-http_referer/ 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. Link to comment https://forums.phpfreaks.com/topic/114312-solved-referring-uri-without-http_referer/#findComment-587792 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 Link to comment https://forums.phpfreaks.com/topic/114312-solved-referring-uri-without-http_referer/#findComment-587801 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! Link to comment https://forums.phpfreaks.com/topic/114312-solved-referring-uri-without-http_referer/#findComment-587824 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.