Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

method HttpSession.isNew() does not work correctly

Status
Not open for further replies.

fernanss

Programmer
Oct 25, 2001
5
ES
Hi everybody,
I have a web application that uses java sessions. I specify an expiration time for the client session. When it expires, I call a servlet where I try to obtain a new session:
Code:
HttpSession session = request.getSession(true);

A new session is obtained, but if I invoque inmediatly to
Code:
session.isNew()
, it returns
Code:
false

Any idea?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top