Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpSession()  RSS feed

 
Chidanand Chauhan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we use

HttpSession session=request.getSession();

Then it will return the new session whether there is any other pre-existing session or not.

If i do

HttpSession session=request.getSession(false)

then itwill return either null or the pre-existing session.


I suppose.
Please comment whether i am right or not...................
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!