Am Montag, 22. Dezember 2003 13:19 schrieb Mikil:
> Hello everyone,

Hi,

> I have a scenario which is very common but don't know the solution
> and thats where I need some help.
>
> Scenario:
>
> After signing out from a web application the cookies are killed and
> sessions invalidated. But when I click on the back arrow key of the
> browser, the page with the user name appears though infact the value
> is null.
>
> Solution:
>
> I am looking for the solution that when I click on the back arrow of
> the browser, it should not allow what I mentioned above but instead
> should direct to a new page or home page.

1.) Add the appropriate no-cache headers to your JSP so the contents
doesn't get cached. 2.) Upon authentication, put some token in session
scope and have your JSP check if it's still there before executing. If
not, redirect to your login page.

> Await for your replies.
>
> Thank you in advance.
>
> Rgds
>
> Mikil

HTH,
-- Chris (SCPJ2)

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to