tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Drinkwater, GJ (Glen)" <>
Subject RE: Réf. : RE: Ref Http Session
Date Fri, 13 Sep 2002 11:00:46 GMT
session cookies id's are not saved to you hard drive. they are stored in you
memory until the  browser is closed.

session attributes are stored on the server and have not contact with he
browser.  The session id sent from your browser is used by the server to id
you session object on the server, then it can access your stored attributes.

if you want to see your session id and associating attributes you will have
to write  jsp page to print out your attributes

something like this

Enumeration en = session.getAttributeNames();
	String name = en.nextElement();
        System.out.println(name +" has value "+ session.getAttribute(name));

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message