Latest Tutorials| Questions and Answers|Ask Questions?|Site Map


View Questions and Answers by Category


Have Programming Question? Ask it here!

Vijay Kumar
Expired session
1 Answer(s)      4 years ago
Posted in : Servlet Interview Questions

How can I recover an expired session?

View Answers

November 4, 2010 at 12:47 PM

If a session has expired, it means a browser has made a new request that carries a session identifier, such as a cookie entry, for which the servlet container has no record. Servlet containers usually discard sessions after a standard time-out period, so they do not have to maintain sessions indefinitely. If the session has expired on the server side, there is no way to re-construct it, because no reference remains.

It is possible to request sessions live longer using the HttpSession setMaxInactiveInterval(int) method. Many servlet containers also support persistent sessions, which are stored between separate invocations of the container, but configuration details vary.

Related Tutorials/Questions & Answers:
Expired session
Expired session  How can I recover an expired session?   If a session has expired, it means a browser has made a new request that carries a session identifier, such as a cookie entry, for which the servlet container has
Session expired - Struts
Session expired  I have write code in struts application. When i run the struts application it report the error session expired How i solve the session expired problem? what are the reasons to expire the session
Registration timer expired, but client is still registering!
Registration timer expired, but client is still registering!  Registration timer expired, but client is still registering
warning in expired medicine - Java Beginners
warning in expired medicine  dear sir, I want to ask how to make a warning message , i has a case: know a has 20 pcs medicine(first stock) this medicine expired in 3 month later,this medicine not sell all, only 10
session  is there any possibility to call one session from another session
session  is there any possibility to call one session from another session
Session   how to session maintaining in servlet with use of hidden fieds
how to ckeck whether the date has expired - JDBC
licenced copy has expired. how to write the query for that?? or is their any
session  Session management in Java
Session  How fined session is new or old
Session Management in PHP  Handling session in PHP. Can anyone please explain it with the help of an existing example about, how to handle a session while a user is logged in PHP
Session   How can we set the inactivity period on a per-session basis?   We can set the session time out programmatically by using the method setMaxInactiveInterval() of HttpSession
session   explain sessioln tracking in jsp and display program
session  Which methods can be invoked by the container on a stateless session bean
session  What mechanisms are used by a Servlet Container to maintain session information?   Servlet Container uses Cookies, URL rewriting, and HTTPS protocol information to maintain the session
Session   hii, What Is a Session?   hello, Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor
session  how can transfer data of one page to another page using session in java swing
Session  What Is a Session?   Hi friends, A session... subsequent HTTP requests. There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved
;A servlet session is created and stored on the server side. The servlet container keeps.... To the maintain the session, Web clients must pass back a valid session.... In this sense, the session is also stored by the client, but only as a token reference
session  create multiple login on one page in php but how to use session
Session   why do we need session? actually what stored in a session... and user would not able to retrieve the information. So, Session provides that facility to store information on server memory. 2)Variables are stored in session
session  how to implement login-logout session????   Please visit the following links: http
session hanling
session hanling  session handling in facelets/jsf
Session in Php
Session in Php   What Is a Session
session Maintainess
session Maintainess  how to maintain session in struts 2
Session management
Session management  How To Maintain Session in jsp for Online exam project
session handling
session handling  how we can handle session in core java
php session
php session  what is session
Terminate the session
Terminate the session  How to terminate the session
Session control
Session control  Could we make session control in JSP language without having any help of other framework
session invalidate.
session invalidate.  how to invalidate session? i am calling session.invalidate()but not working