tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Drinkwater, GJ (Glen)" <G.J.Drinkwa...@dl.ac.uk>
Subject RE: Ref Http Session
Date Fri, 13 Sep 2002 11:13:53 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();
while(en.hasMoreElements){
	String name = en.nextElement();
        System.out.println(name +" has value "+ session.getAttribute(name));
}




--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message