I am bit confused in the session handling stuff , does the closing of a browser means that the session has ended ? or should the user explicitly end the session ? or perhaps somebody care to explain what is the session ?
Hi Srinath! Session tracking is a mechanism that servlets use to maintain the state about a series of requests from the same user (that is, requests originating from the same browser) across some period of time. A session expires when the browser is closed.You can explicitly end a session also using the HttpSession's method setMaxInactive Interval(int interval).Hope this clears ur doubt. Good Luck! Preethi
Hi Prakash! Fine i agree with u, but i had a doubt can we retrieve the session back when the browser is closed and how?can u pls explian me about it. Regards! Preethi
Joined: Jan 10, 2001
Hi Preeti, The reason for this question was even after closing the browser I was able to get into my yahoo mail account without typing the password which means (I assume) the session is still active. Does this mean that the session is server dependent ie., set by the programmer ? thanks Srinath
Joined: Nov 17, 2000
Hi Srinath! I don't agree with u.b'coz u cannot login to ur account with out entering ur password, once u have closed ur browser.u got to give ur password.As far my knowledge goes session is not server dependent.if yes pls enlighten me. Regards! Preethi