Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to log off the user when he hits the back page???

Status
Not open for further replies.

MackAA

Programmer
Mar 21, 2006
13
CA
I disabled the back button with disabling the page's cache. But when I refresh the previous page I get a postback and sessionid has the same value, so I still logged on. Is anyone could tell how to make the user logged off every time he hits the back page button?
 
Messing with the browser's back button is not a very good idea. I would complain to you and would not use your app or visit the site.

You can use a session value and redirect to another page.

 
Hello dvannoy,

The problem actually is: when you move from my app and you come back to using the back button, there any server event fired. I don't how to do to catch the event (back button) and set a session value
 
Hello dvannoy,
Thanks for your help.

I already checked out this article and I understood what you want me to do to reslove the problem. But I still get the issue because I can't change the value of session variable when user move from my app by writing in the adress bar a different site's url. When closing the window or when clicking to loggoff every thing is fine.

In my case, the article doesn't resolve the problem beacuse the connected user could navigate in the app and visit more than one time each page.

Actually the issue is: there is no any server event fired when moving from my app by navigating to another site. So, by back button (if cache is not disabled) the user could get the previous page and he still connected. If cache is disabled, the back button displays an IE page and when refreshing the previous page is displayed as well.

I hope you catch me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top