>Hello,
>I am checking whether a session is inactive for more
>then 1 minute by the following:
>if((session.getLastAccessedTime())<(System.currentTimeMillis()
>- 6)){
>out.println("INACTIVE FOR MORE THEN 1 minute");
>session.invalidate();
>res.sendRedirect("http://mahtanjg/complaintsys/relogin
Jeetandra Mahtani wrote:
> session is invalidated but the redirection does not
What is the specific error you are getting? If its an IO Exception: More than
likely the serlvet engine is using URLConnection which requires the URL to be
in the DNS else you will have to give it the raw IP address.
ubject: 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()
> - 6)){
> out.println("INACTIVE FOR
Hello,
I am checking whether a session is inactive for more
then 1 minute by the following:
if((session.getLastAccessedTime())<(System.currentTimeMillis()
- 6)){
out.println("INACTIVE FOR MORE THEN 1 minute");
session.invalidate();
res.sendRedirect("http://mahtanjg/complaintsys/relogin.htm");