Use the following code to disable cache:
            HttpServletResponse.setHeader("Cache-Control", "no-cache");
            HttpServletResponse.setHeader("Cache-Control", "no-store");
            HttpServletResponse.setHeader("Pragma", "no-cache");
so that when session is disabled and the user tries to log in again... a new
request is sent to the Web server.
--Manish--
Nath Niraj wrote:

> Invalidating the session won't help as the page is coming from the
> cache.....
>
>  Niraj
>
> Purav <[EMAIL PROTECTED]> on 02/10/99 01:10:03 PM
>
> Please respond to "A mailing list for discussion about Sun Microsystem's
>       Java              Servlet API Technology."
>       <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:    (bcc: Niraj Nath/India/IBM)
> Subject:  Re: Log Out.
>
> use sessions and invalidate the session on the lofoff page.
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Nath
> Niraj
> Sent: Wednesday, January 10, 2001 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Log Out.
>
> but in this way u can restrict only the page from where LOGOFF link was
> clicked...what about the rest of the pages....
>
> N
>
> Purav <[EMAIL PROTECTED]> on 02/10/99 12:09:44 PM
>
> Please respond to "A mailing list for discussion about Sun Microsystem's
>       Java              Servlet API Technology."
>       <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:    (bcc: Niraj Nath/India/IBM)
> Subject:  Re: Log Out.
>
> on the logoff link, call a javascript function.
> In the javascript function write location.replace(filename). thats it
>
> Purav
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Arora
> Tripti
> Sent: Wednesday, January 10, 2001 11:26 AM
> To: [EMAIL PROTECTED]
> Subject: Log Out.
>
> Hi,
>         When a user logs out, I need to prevent him/her from viewing the
> previous screen when the back button is clicked. Does anyone know how it is
> done?
>
> Thank You
> Tripti Arora
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.219 / Virus Database: 103 - Release Date: 12/5/00
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system ((http://www.grisoft.com).
> Version: 6.0.219 / Virus Database: 103 - Release Date: 12/5/00
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.219 / Virus Database: 103 - Release Date: 12/5/00
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system ((http://www.grisoft.com).
> Version: 6.0.219 / Virus Database: 103 - Release Date: 12/5/00
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

--
+----------------------------------------------Live-Your-Dream----+
Obstacles are things a person sees when he takes his eyes off his goal.
                                                                       -E.
Joseph Cossman

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to