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

On Fri, 28 Jul 2000, Chris Cheshire wrote:

> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
> 
> I am using sessions to store retrieved data from the db for a customer,
> but I am finding occassionally
> (not a lot, but just enough to piss the customers off) that the session
> I get back is not the right session.
> I am storing a customer's id in a cookie and then matching that with
> what I get back from what I
> store in the session object (getSession(true)) and it is not the
> same!!!!
> 
> This is under Apache 1.3.12, JDK 1.2.2. RC4 (Blackdown), Jserv 1.1.2,
> JSDK 2.0, Redhat 6.2
> 
> Has anyone else had this kind of a problem? Is this a JSDK2.0 problem or
> a Jserv problem?
> 
> Thanks,

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]

Reply via email to