Jump to content

Session End On Clicking Browser Back Button


sridaran

Recommended Posts

You'll need to capture the window.onunload event, I think, and send an AJAX message to your server. You may need to do it synchronously for the correct headers to reach your server. I don't recall.

Link to comment
Share on other sites

what session?
K.When we Login into a site we store the id's in the session.When user entered into the site and if he clicks on the Browser Back Button to go to Previous page the Session which contains the Login details has to be Deleted and it has to redirect to Login Page.If he want to go to site again he has to Login with required Credientials..Username,Password.
Link to comment
Share on other sites

You'll need to capture the window.onunload event, I think, and send an AJAX message to your server. You may need to do it synchronously for the correct headers to reach your server. I don't recall.
Hi,Can you give an Example code.
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...