tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane.RA...@r2isante.fr
Subject Réf. : RE: Ref Http Session
Date Fri, 13 Sep 2002 11:45:57 GMT

Thanks a lot for all your responses...

------------------------------
A++

Stéphane



                                                                                         
  
                    "Drinkwater, GJ                                                      
  
                    (Glen)"                Pour :  Tomcat Users List                     
  
                    <G.J.Drinkwater        <tomcat-user@jakarta.apache.org>     
           
                    @dl.ac.uk>             cc :                                       
     
                                           Objet :      RE: Ref Http Session             
  
                    13/09/2002                                                           
  
                    13:13                                                                
  
                    Veuillez                                                             
  
                    répondre à                                                         
    
                    "Tomcat Users                                                        
  
                    List"                                                                
  
                                                                                         
  
                                                                                         
  






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>





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