tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S.Z...@spmv.de
Subject Session problems
Date Wed, 16 Aug 2000 10:50:11 GMT
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