All inline -

> 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)
<Ashutosh> So, have I contradicted this?   I dont think I have even
mentioned what you are saying. I am only saying that "if the request has no
valid HttpSession, the
 method will return null".

> But when we use boolean parameter as True then it Creates a new session
for
> every request encountered.
<Ashutosh> You have got it incomplete here .. It creates a new session *if*
one does not exist.Else, returns the existing session associated with the
request.

> Maybe You Need To Brush Up Your Servlets Concepts a bit.
<Ashutosh> Or, maybe you need to read *and understand* the e-mails properly.

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

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