Matar Posted January 12, 2008 Share Posted January 12, 2008 hi sorry am not very well in english i wsa asked before about a problem , thats when a user loged in his account and after that he click back button in the browser , and then he click forward in the browser my script redirct him to his account without ask him about login informationhow can i solve that ???many thanks Link to comment Share on other sites More sharing options...
Synook Posted January 13, 2008 Share Posted January 13, 2008 What is the problem? After all, he is still logged in even though he clicked the back button...? Link to comment Share on other sites More sharing options...
clonetrooper9494 Posted January 14, 2008 Share Posted January 14, 2008 So, you want people to be able to leave the site, and still be logged in? Try using cookies (or PHP cookies)... And if you are using cookies to login, his broswer probably saved that page in its temp files, and displayed him not being logged in. So they should just refresh the page if that happens again. Link to comment Share on other sites More sharing options...
emicha Posted January 15, 2008 Share Posted January 15, 2008 If you register session, the user will have to logout (session_destroy()) to delete it. He will be logged in, until the session expires or the session will be destroyed. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.