----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Session tracking uses per-session cookies -- ie,
cookies that are not persistent.  So if the user closes the
browser, the cookie that identified that session goes away.
When the user re-opens the browser and hits your servlet,
they get a brand-new session --- as you found in your test.

- Fernando

>
> I haven't got any replay for my question asked a week so bear with me
> posting agian and please help me
>
>
>
> I'm very confused about seesion tracking. I read java trail on session
> as well as Ch7 Session Trainging on O'Reilly "java servlet programming".
> It says on java trail that
>
>       "by default session tracking uses cookies to associate a session
>        identifier with user"
>
> does this mean that the session servlet grap cookies when I do
> *.getSession(true)???
>
> If this is the case, the client store id given by the server and if cilent
> restart brower,the server still be able to get cookie from client
> containing same id the server gave a while ago though retrieve right
> session which the cilent exit before as long as the client access
> the servlet before seeison time out? or am I misunderstood.
>
> I'm testing with simple counting program keep track of how many time a
> user access servlet. If user hit ctrl-refresh (or shift-refresh in
> netscape) the conter inc. But if I exit browser and access the servlet
> after retart brower, the count goes back to 1. which contradict with
> session tracking..... please help me
>
>
> Cheers
> Katsu
>
>
>
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to