Hello,
Can someone correct me if I am wrong. I have the
following in a servlet that prints out some html:
....
HttpSession session = req.getSession(true);
        if(!session.isNew()){
                Date hourAgo = new Date(System.currentTimeMillis()
- 60);
                Date accessed = new
Date(session.getLastAccessedTime());
                if(accessed.before(hourAgo)){
                        session.invalidate();
                        String relogin =
"http://mahtanjg/complaintsys/relogin.htm";
                res.sendRedirect(relogin);
                }
        }

.....
Now, I get this page, wait for a few seconds and
refresh it, but I still get the html back; shouldn't
I be redirected to the relogin page?
Thanks,
J





_________________________________________________________
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

Reply via email to