InterviewSolution
| 1. |
What Is The Difference Between Using Getsession(true) And Getsession(false) Methods? |
|
Answer» getSession(true) - This method will CHECK WHETHER already a session is EXISTING for the user. If a session is existing, it will return that session object, Otherwise it will create new session object and return taht object. getSession(false) - This method will check existence of session. If session EXISTS, then it returns the reference of that session object, if not, this methods will return null. getSession(true) - This method will check whether already a session is existing for the user. If a session is existing, it will return that session object, Otherwise it will create new session object and return taht object. getSession(false) - This method will check existence of session. If session exists, then it returns the reference of that session object, if not, this methods will return null. |
|