Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

request.getSession(false) never returns null

526910Sep 28 2006 — edited Sep 28 2006
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.

Thanks,
Sérgio Morais
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 26 2006
Added on Sep 28 2006
1 comment
798 views