Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session creates or not if we write request.getSeeion(false) for the first time

 
srinu polam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is Session object creates or not if we write request.getSeeion(false) for the first time
 
Nilesh Miskin
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The above code will return null if the request has no valid session.
For more details see javax.servlet.http.HttpServletRequest.
 
Poobhathy Kannan
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Session will not be created
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic