I don't believe that sendRedirect works after you have written to the output
stream. Try getting rid of the out.println(...);
(*Chris*)
----- Original Message -----
From: Jeetandra Mahtani <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 13, 1999 3:03 PM
Subject: Unable to redirect after invalidating session...
> Hello,
> I am checking whether a session is inactive for more
> then 1 minute by the following:
> if((session.getLastAccessedTime())<(System.currentTimeMillis()
> - 60000)){
> out.println("INACTIVE FOR MORE THEN 1 minute");
> session.invalidate();
> res.sendRedirect("http://mahtanjg/complaintsys/relogin.htm");
> }
>
> 'INACTIVE FOR MORE THEN 1 minute' is printed and the
> session is invalidated but the redirection does not
> take place.
> I am definitely missing something over here, can
> someone please explain.
> Thanks.
>
>
>
>
>
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
___________________________________________________________________________
> 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