Jump to content

click back in the browser


Matar

Recommended Posts

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...