Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disabling the back button of web browser

 
mahesh prabhas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers,
I have a problem in servlets , hope some one could help me out

Whenever i signout from the homepage of my web application i could get into it again when the back button of the web broser is clicked so i have programmatically tried to check whether my session is killed by putting another link on the application which redirects to login page once the user signs out.Please help me out.How do I ensure that even the user clicks the back button of web browser he doesnt enter the session but is sent to the login page.
Thanks,
MAHESHNAG.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. And you shouldn't even if you could.

Search through this and the HTML forum for many previous discussions on how to fix your application, not attempt to hobble the user's browser.

Please read this for more information.
 
Matt Thomassan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,

I think the question posted by Mahesh is:
how can the web developers ensure that if the user clicks the back button of the web browser (after he has signed out), he does not go to the session page. Instead he should be redirected to the home page.

The question is not how to disable the back button of the users browser which obviously will freak out the user.

Thank you

Best Regards
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which is why I suggested searching for the previous discussions on that issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic