View RSS Feed

Servlet

HTTP Sessions

Rate this Entry
by , 01-01-2012 at 03:50 PM (1783 Views)
One of the recommended approaches is HTTP session. A request is being identified by the session which is originated from similar browser during the conversation time period. Same session could be shared by all servlets. The JSESSIONID gets generated by server and is passed via cookies to the client, Built in SSL mechanism or URL rewriting (if cookies get off). For minimizing the objectís size stored in session, care shall be taken. To obtain the session in Java servlet proceed as following:

HttpSession session = request.getSession();

Sessions can be manually invalidated or timed out (configured in web.xml).

Name:  8.JPG
Views: 287
Size:  26.1 KB

HTTP Session Management

Submit "HTTP Sessions" to Facebook Submit "HTTP Sessions" to Digg Submit "HTTP Sessions" to del.icio.us Submit "HTTP Sessions" to StumbleUpon Submit "HTTP Sessions" to Google

Updated 01-15-2012 at 07:35 AM by Servlet

Categories
Session

Comments