• Post Reply Bookmark Topic Watch Topic
  • New Topic

How Google deals with the Back Button after logout?  RSS feed

 
Neeraj jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like the Google solution but I don't know how is implemented. When I logout from my Gmail account and then I click the Back Button, I'm not able to see my previous mails, I redirected to the Login page.

I'm not trying to change or avoid the Back Button, I just want to avoid to show that not suitable data.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript tricks provide no security.

Rather, ensure that your pages are not cached (discussed many times and in FAQs), and be sure to handle authentication correctly.
 
Luan Cestari
Ranch Hand
Posts: 172
C++ Redhat Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:JavaScript tricks provide no security.

Rather, ensure that your pages are not cached (discussed many times and in FAQs), and be sure to handle authentication correctly.


Good advice, I thought to say sth about but I forgot. So, watch out your cookies. You can also put something in the onload event to check with the server, or maybe in the cookie to use javascript to do some validation (or if the page URL is sth and there isn't any (valid) cookie you can redirect the user.
 
Neeraj jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@
Bear Bibeault yes sir i have tried it through javascrript but as you said it is not a good way, so will you please tell me how to achieve that pages are not cached
 
Paul Clapham
Sheriff
Posts: 22505
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want to prevent the browser from caching your JSP page? Then check out our JspFaq page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!