Hi,

  When I call the isNew() function on the session reference it always returns
true although the session is old and has not timed out.

In the first servlet I do this HttpSession session = req.getSession(true);
                                          session.putValue("X", "crazy");

The first servlet outputs a form with the target to a second servlet. In the
second servlet I do this:

                                          HttpSession session =
req.getSession(true);
                                          log(session.isNew());
                                          log((String)session.getValue("X"));

In the logs I get : true
                           crazy

My browser has cookies enabled and I have not shut the session engine option on
Jrun off.
My session timeout is 30 mins and I'm not calling session.invalidate() anywhere.

Can somebody explain what is wrong with the isNew() statement.

Any answers are appreciated.

Thanks
mmp.

___________________________________________________________________________
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