<B>getSession(true) will make a new session when no session existed. but getSession() do nothing. </B> But always there will have a session......So what is the use of giving true???
But always there will have a session......So what is the use of giving true???
If the previous session has timed out it returns a new. If there is no previous one then it returns a ne w one too. What do you mean that there will be a session always.
Originally posted by Mathews P Srampikal: I mean whenever yhe user login there will have a session automaticall created by container???.....am I right???
No..unless the first page displayed is a JSP..jsps create session by default.