runnerjp Posted November 17, 2008 Share Posted November 17, 2008 if my users where to follow a link sent in an email but where not logged in then how could i make it so if the users logged in it sends then to the previous page they where viewing on the site? Link to comment https://forums.phpfreaks.com/topic/133068-go-to-last-page-once-loggedin/ Share on other sites More sharing options...
trq Posted November 17, 2008 Share Posted November 17, 2008 Store the previous page within the $_SESSION array. Link to comment https://forums.phpfreaks.com/topic/133068-go-to-last-page-once-loggedin/#findComment-692004 Share on other sites More sharing options...
runnerjp Posted November 17, 2008 Author Share Posted November 17, 2008 ahh good thinking and very fast reply lol... so would i need to creat a session and store the url.. Link to comment https://forums.phpfreaks.com/topic/133068-go-to-last-page-once-loggedin/#findComment-692006 Share on other sites More sharing options...
trq Posted November 17, 2008 Share Posted November 17, 2008 so would i need to creat a session and store the url.. Indeed. Link to comment https://forums.phpfreaks.com/topic/133068-go-to-last-page-once-loggedin/#findComment-692009 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.