Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 05, 2012 09:04 AM by Fizzaali
Jul 11, 2007 09:02 PM|LINK
I have an web application which requires login. When users finish their activities they simply logout. What I need is to clear browser history when user click logout button. This should disable BACK button in browser.
Jul 11, 2007 10:08 PM|LINK
A thorough examination of "disabling back button"
Jul 15, 2007 09:50 AM|LINK
I tried, but it does not go so easy! Maybe I should use secure connection.
I am going to leave this post as "not resolved" for some time.
Jul 15, 2007 12:50 PM|LINK
Jul 16, 2007 11:12 AM|LINK
But if the problem is, that if the user clicks back after they have logged out, they can just go straight back onto the page, is it not possible to manually type the address in the address bar and get to the page, whether the back button is disabled or
Without going as far as using Secure connections etc. you could just pop a check ontop of your 'Logged in only' pages to see if the Session has something for the current User. Then when you log out, you clear the session.
Jul 16, 2007 11:20 AM|LINK
Jul 16, 2007 05:16 PM|LINK
//clears browser history and redirects url
Jul 16, 2007 07:37 PM|LINK
That is a wicked trick, Eric :)
Jul 16, 2007 07:53 PM|LINK
Thanks ;) I use it in a page called clearhist.aspx. All the pages that require no back button are routed through this page with the nextpage as a query variable.
I use it for logging out too and bringing user back to Login page:
Jun 24, 2009 06:28 AM|LINK
hi, i am working on an asp page. i tried with your code but it redirected me to the home page instead of the given URL mentioned in "window.location.href". is there any option that we can delete a specific page from browser history on page unload or when
we close the window. kindly request you to provide help for asp.