----------------------------------------------------------------
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!!!
----------------------------------------------------------------

>
> does this mean that the session servlet grap cookies when I do
> *.getSession(true)???
>

Yes


>
> 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?

No, cookie is related to sessionid which is renewed at browser restart


>
> 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.....

Restart browser=new session

In short:
Persistent sessions surviving browser restarts are AFAIK not available unless
you implement some
scheme of your own.

The whole setup with cookies and sessions works like it is. You can get rid of
the cookies by using
URL rewriting.

HTH
//OLAS



--
--------------------------------------------------------------
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