shadowayex Posted June 20, 2008 Share Posted June 20, 2008 Is there a way to redirect a user to the previous page? I have a code on each page that checks if the user is logged in and I want to make it so if they aren't logged in, they are directed to log in. Then the log in page can direct them to the page they came from. Link to comment Share on other sites More sharing options...
zppblood Posted June 20, 2008 Share Posted June 20, 2008 You can have the filename in the URL, hidden input HTML, store in a session, etc. Link to comment Share on other sites More sharing options...
Synook Posted June 20, 2008 Share Posted June 20, 2008 There is also $_SERVER['HTTP_REFERER'] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.