JSP implicit Session object (I)
17 March 2008Session 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.
Related Posts:
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)