Hi guys,
I've got a Struts/Servlet question. Since I'm using the
Struts framework in my application, I'm posting this question in the Struts forum.
I want to check whether a HttpSession is invalidated, timed-out or equal to null. When one of these three cases happen, I want my application to redirect to the first page.
In my action classes, I always check if the session equals null by using the following method:
Every time, even when the session is timed-out, it doesn't equal null! Because of that, I can't redirect to the first page...
Is there a way to check whether a session is invalidated or equal to null in my Action classes?
Thanks!