G
gk
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 ?
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 ?