JSP implicit Session object (I)

17 March 2008

Session Object is another implicit JSP object that denotes the data associated with a specific session of a user. It is associated to Javax.servlet.http.httpsession.

The connection between client and the server is provided by the session object. It maintains states when there are multiple page requests. If the user is navigating between multiple pages, and you need to store some data associated with that user, then session object helps you in this.

Some useful session object methods are:

getAttribute(String name) 
getAttributeNames isNew() 
getCreationTime 
getId invalidate() 
getLastAccessedTime 
getMaxInactiveInterval 
removeAttribute(String name) 
setAttribute(String, object)

Do follow the next posts on this.

del.icio.us:JSP implicit Session object (I)  digg:JSP implicit Session object (I)  spurl:JSP implicit Session object (I)  wists:JSP implicit Session object (I)  simpy:JSP implicit Session object (I)  newsvine:JSP implicit Session object (I)  blinklist:JSP implicit Session object (I)  furl:JSP implicit Session object (I)  reddit:JSP implicit Session object (I)  fark:JSP implicit Session object (I)  blogmarks:JSP implicit Session object (I)  Y!:JSP implicit Session object (I)  smarking:JSP implicit Session object (I)  magnolia:JSP implicit Session object (I)  segnalo:JSP implicit Session object (I)  gifttagging:JSP implicit Session object (I)

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: JSP implicit Session object (I)

Leave a Reply