tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darren Hobbs <Darren.Ho...@ebookers.com>
Subject RE: Session problems
Date Wed, 16 Aug 2000 11:14:38 GMT
The session ID is sent by the browser as part of the request - a new session
ID will not be generated until a new request is received from the client.
req.getSession() is still using the original req object.  Once a new request
is received from the browser a new req object will be created.  (I think :)
).
 
-Darren

-----Original Message-----
From: S.Zeeh@spmv.de [mailto:S.Zeeh@spmv.de]
Sent: 16 August 2000 12:16
To: tomcat-user@jakarta.apache.org
Subject: AW: Session problems



Hi, 

it is correct that the objects that I have put in the session get lost, 
but why doesn't the session id get invalidated? 
Is that correct? 

Stephan 


-----Urspr√ľngliche Nachricht----- 
Von: Graham Stewart [ mailto:GrahamStewart@btinternet.com
<mailto:GrahamStewart@btinternet.com> ] 
Gesendet: Mittwoch, 16. August 2000 13:03 
An: tomcat-user@jakarta.apache.org 
Betreff: Re: Session problems 


  
As far as I'm aware invalidate() marks the session as invalid and unbinds
all objects associated with the session. 

Graham 

----- Original Message ----- 
From: S.Zeeh@spmv.de 
To: tomcat-user@jakarta.apache.org 
Sent: Wednesday, August 16, 2000 11:50 AM 
Subject: Session problems 


Hi, 
I have some questions about session id's and session in general. 
If I do a: 
HttpSession session = req.getSession(true); 
System.out.println("ID " + session.getId()); 
I get a session id like du43dew7k1: 
After a 
session.invalidate(); 
System.out.println("ID " + session.getId()); 
I get the same session id like before. 
Even another 
session = req.getSession(true); 
System.out.println("ID " + session.getId()); 
will give me the same session id. 
I this the right behavior? Do I do something wrong? 
What does the session.invalidate() method do then? 
I couldn't find anything in the specs. 
Thanks, 
Stephan 


Mime
View raw message