tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wentzel <>
Subject RE: Session Problem
Date Thu, 04 Jan 2001 19:31:24 GMT
>     HttpSession session = request.getSession();

Also, the request.getSession() method is overloaded as
request.getSession(boolean) with the boolean param specifying
whether to create a new session if one does not exist, i.e.
if request.getSession(false) is used a new HttpSession will
not be instantiated if one does not already exist.  This
allows for more specific user checking in that you can check
if there is a valid session as well as if there is a valid
user stored in the session.

Michael Wentzel
Software Developer
<A HREF="">Software As We Think</A>
<A HREF="mailto://">Michael Wentzel</A>

View raw message