tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Cook" <jimc...@iname.com>
Subject Re: Session Question: creation of a session
Date Thu, 10 Aug 2000 18:52:41 GMT
If you are truly on a mission, check out the source!

getSession() simply calls getSession(true)

jim

----- Original Message ----- 
From: "Lucas Ludvig" <jojwig2@hotmail.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Thursday, August 10, 2000 2:15 PM
Subject: Session Question: creation of a session


> 
> 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