Hello Ashutosh,
What Milind wrote is absolutely true ,if there is no Session associated
with the Request then
Container makes the new HttpSession Object
when we use session.getSession(False)
But when we use boolean parameter as True then it Creates a new session for
every request encountered.

Maybe You Need To Brush Up Your Servlets Concepts a bit.

Regards,
Aashish


*****************************************************************************

Milind wrote -
"If you specify getSession(true) it will create a new
 session object everytime."

getSession(boolean b) will return the current HttpSession associated with
the request. However,  if there is no current session and "b" is true then
a
new session is returned.
So, it does not create a new session object everytime.
If the parameter "b" is false and the request has no valid HttpSession, the
method will return null.
Hence, i am not sure if setting getSession(true) will be of much help to to
May.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to