top of page

Difference between using getSession (true) and getSession(false) methods

What is the difference between using getSession(true) and getSession(false) methods?


  • getSession(true) will check whether a session already exists for the user. If yes, it will return that session object else it will create a new session object and return it.

  • getSession(false) will check existence of session. If session exists, then it returns the reference of that session object, if not, this methods will return null.



If you like Codersarts blog and looking for Programming Assignment Help Service, Database Development Service,Web development service,Mobile App Development, Project help, Hire Software Developer,Programming tutors help and suggestion you can send mail at contact@codersarts.com.


Please write your suggestion in comment section below if you find anything incorrect in this blog post


Comentarios


bottom of page