Hi,
Firstly, req is an instance of the request object.
The problem sounds like it is most likely a lack of session cookie support in
the browser. Is it wireless by any chance?
if it is, WAP doesn't have cookie support in the phone, it requires a gateway
with session cookie support.
To check to see if the session is working, use session.getId(), and compare it
between requests from the same browser.
If they are the same, and objects aren't getting stored in the pool, then
there is a big time bug. Try the latest servlet engine.
If they are different, try upgrading the browser (or gateway) to support
session cookies, or use url rewriting. I think the documentation has a small
section on url rewriting.
hopefully this is of help
Rob
Vivek Singh <[EMAIL PROTECTED]> wrote:
> 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
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
___________________________________________________________________________
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