This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "A query about HttpSession.isNew" Watch "A query about HttpSession.isNew" New topic
Author

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: 1270

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..........

kaustubh


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: http://aspose.com/file-tools
 
subject: A query about HttpSession.isNew
 
Similar Threads
what is the difference between method overriding and redefining
Use of setNamingStrategy
What is a Factory method please explain with use of such methods
Kindly clarify "HttpSession.isNew()"