Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpSession()

 
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...................
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic