Link to home
Start Free TrialLog in
Avatar of jiiins2
jiiins2

asked on

Logout, redirection and history cleanup

Hello experts,

I have a small ASP.NET 2 (VB) website with authentication. After x minutes of inactivity, I would like the logged user to be automatically logged out and redirected to wherever.com. It would be also great to cleanup the browser's history (at least my website's entry) and any cookies or other traces of my site (btw, the site is nothing illegal or ethically grey... just sensitive information). How can I accomplish that?

Thanks!
J
Avatar of ullfindsmit
ullfindsmit
Flag of United States of America image

to logout the user simply use the setTimeOut function on the javasacript. This way the page will automatically redirect to the logout page and clear session / cookies

For clearing the history check out this post
https://www.experts-exchange.com/questions/21289083/history-clear-or-avoid-BACK.html

you might also want to try using an IFrame as that will help avoid url on some browsers to come up.
Avatar of jiiins2
jiiins2

ASKER

Can you please explain how to use the setTimeOut function? What is the difference with session.timeout?

Thanks,
J
ASKER CERTIFIED SOLUTION
Avatar of ullfindsmit
ullfindsmit
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial