Z
zidered
Using weblogic 8.1 (sp3), Tomcat 5, JDK 1.4.1_07, struts 1.1
Am trying to detect when a user's session has expired so as to forward to
app start page. In each od my Action's I have this line -
HttpSession session = request.getSession(false);
Using the false parameter is supposed to return null if expired but it
always return a session object. isNew() returns true so it creating a new
session object each time. No matter what I try on both servers it will not
return null!
Any ideas? - is this a known bug? or wot?
Found what looks like a way around it using the request's
isRequestedSessionIdValid() method which seems to do the trick but would
love to know what the other problem is!
thanks
harry
Am trying to detect when a user's session has expired so as to forward to
app start page. In each od my Action's I have this line -
HttpSession session = request.getSession(false);
Using the false parameter is supposed to return null if expired but it
always return a session object. isNew() returns true so it creating a new
session object each time. No matter what I try on both servers it will not
return null!
Any ideas? - is this a known bug? or wot?
Found what looks like a way around it using the request's
isRequestedSessionIdValid() method which seems to do the trick but would
love to know what the other problem is!
thanks
harry