• Post Reply Bookmark Topic Watch Topic
  • New Topic

Request  RSS feed

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between getSession(boolean true) and getSession() methods? How we will decide which method should be used?
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
The getSession() method is just short for getSession(true). So the only reason for using the version that takes a parameter, is to specify that you do not want a session to be created, if one does not exist already.
Regards,
Flemming Mertz
 
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!