http://getahead.ltd.uk/dwr-demo/javadoc/uk/ltd/getahead/dwr/WebContext.html
we have these 2 definition in that page...
(1)
javax.servlet.http.HttpSession getSession()
Returns the current session associated with this request, or
if the request does not have a session, creates one.
(2)
javax.servlet.http.HttpSession getSession(boolean create)
Returns the current HttpSession associated with this request
or, if there is no current session and create is true, returns a new
session.
whats the difference between (1) and (2) ? i see, the different states
"current sesion"....can anybody explain this stuff to understand the
difference .
which one i should use ?
Sanjay - 21 Mar 2006 13:33 GMT
> http://getahead.ltd.uk/dwr-demo/javadoc/uk/ltd/getahead/dwr/WebContext.html
>
[quoted text clipped - 11 lines]
> or, if there is no current session and create is true, returns a new
> session.
All I can see is with this API, you have the handle not to create a
session if it doesnt exist.
> whats the difference between (1) and (2) ? i see, the different states
> "current sesion"....can anybody explain this stuff to understand the
> difference .
>
> which one i should use ?