Thursday, 19 September 2013

Show Login after User Logsout and Press Back button

Show Login after User Logsout and Press Back button

It's quite common that when User is logged out and pressing back button
may land into LoggedIn user pages [last page], though they will not be
able to do anything from there. But certainly it can be seen as Logged in
User page.
One way is to ensure that browsers don't cache the page, setting up header
parameters. But it can work or can't work depending on browser.
When I have seen Facebook, somehow they implemented this feature that once
user is logged out, back button will always asks for login.
How do we achieve this using Javascript/jQuery?

No comments:

Post a Comment