what is req here?
if it is request u have to pass either true or false...

there can be four scenarios either the session exist or not, and u have
passes tru or false.
exist & false: u will get the session.
exist & true: u will get the session.
not-exist & true: a new session will be created.
not-exist & false: u will get null (no session created)

hope its clear.

ps: for destroying a session explicitly call session.invalidate

v

-----Original Message-----
From: Akshaykumar Sharma [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 21, 2000 11:42 AM
To: [EMAIL PROTECTED]
Subject: Re: http session bugs


use req.getSession();




-----Original Message-----
From: Jake Brain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 20, 2000 11:04 PM
To: [EMAIL PROTECTED]
Subject: http session bugs


2 quickies - any ideas or experiences shared are appreciated.

I have a valid session holding needed data, I access a servlet that calls
request.getSession(true). Then later  the servlet checks for the needed data
in the session, this data is not put in by the servlet,  it does not find
the
data and I have problems. I think I can conclude that the call to
request.getSession(true) created a new session since the cookie session id
could not be found in the appserver. I am wondering if others have had this
problems, having a valid session, calling req.getSession(true) and losing
the
old session, creating a new one.
Also when you configure the session timeout for a sessions, does that mean
if
you are inactive for that time period the session will be lost, or does it
mean even if you are active in your session - the session will end when the
timeout period comes. Thanks

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to