The moose likes Servlets and the fly likes A query about HttpSession.isNew Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "A query about HttpSession.isNew" Watch "A query about HttpSession.isNew" New topic

A query about HttpSession.isNew

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Can anybody please tell me what will be the importance or significance of sun providing Httpsession.isNew Method??

As per the docs it says that this method returns true when the Web container has created the server but the client is not still associated with it .

The question i mean to ask is that , in what cases this method would be useful ??

Please share your ideas . Thanks in advance .

Save India From Corruption - Anna Hazare.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1283

As per my knowledge isNew is used to check whether there is any old session present or not if the old session expired it will create a brand new session for the request..........


No Kaustubh No Fun, Know Kaustubh Know Fun..
Sumukh Deshpande
Ranch Hand

Joined: Feb 17, 2008
Posts: 87

Take a look at this:
I agree. Here's the link:
subject: A query about HttpSession.isNew
It's not a secret anymore!