tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas Ludvig" <jojw...@hotmail.com>
Subject Session Question: creation of a session
Date Thu, 10 Aug 2000 18:15:59 GMT

Hello Tomcat/Servlet Gurus:

Sessions are failing me and I am on a mission to learn everything there is 
to know about sessions.  My first question is:

According to the servlet javadocs..

HttpServletRequest.getSession()
- Returns the current session associated with this request, or if the 
request does not have a session, creates one.

vs.

HttpServletRequest.getSession(boolean)
- Returns the current HttpSession associated with this request, or if if 
there is no current session and create is true, returns a new session.

Is there any difference?
Thanks,

Luke


________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Mime
View raw message