Questions tagged [session-timeout]

A session timeout occurs when a unique application session (e.g. a web session) expires due to a time limitation placed on the session.

A session is a way of uniquely identifying an instance of usage of an application. This is often achieved by the assignation of a unique token, which the user must provide each time they invoke an operation within the application. In this way, sessions are one way of overcoming the stateless nature of HTTP requests.

A session may have an arbitrary expiry time associated with it. Once this expiry time has been reached, the session is no longer considered valid. Session expiries can either be fixed or sliding; a fixed expiry indicates a definite point in time at which the session becomes invalid, while a sliding expiry indicates the maximum amount of time between individual requests which is allowed to elapse before the session becomes invalid. In this manner, a sliding expiration may never timeout.

Session timeouts are not errors in themselves; they are valid states of a session which indicate that the session should not be used, and all requests which attempt to use the expired session should be treated as erroneous. However, faults may arise due to sessions timing out before they have expired, or sessions considered valid when they have passed their expiration time.

See also: Session (computer science), Session Management, HTTP Cookies

1287 questions
0
votes
1 answer

Session Variables Expiring

I have a shopping cart app using a temporary MySQL table to store cart contents. Each row of the cart table has the session value saved to uniquely identify that row. I'm setting the initial value using the following: $session_id =…
Brett
  • 887
  • 4
  • 14
  • 25
0
votes
2 answers

Session variables lost - Singleton instance becomes null

I'm working on a Web app using ASP.NET. I have a class called "Sistema" that uses the Singleton pattern. When the instance of Sistema is created, the database connection is opened and a process runs that loads some static information for later use.…
Gonzalo
  • 982
  • 6
  • 23
  • 39
0
votes
1 answer

ASP.NET MVC2 Implement session timeout warning

I need help with my MVC2 app session timeout warning. A popup should occur when the user is within "n" minutes of the session timeout. Is there some way to know that information or this has to be calculated. I have standard get/post actions but also…
Cemsha
  • 183
  • 3
  • 14
0
votes
2 answers

Is it possible to extend session time

I don't know if this is possible. When I set sesstion variable: Session["name"] = "name"; Can I set somehow time out for this variable (specific to this one)? In web config timeout can be set to 20 minutes but I want this session variable to stay a…
1110
  • 7,829
  • 55
  • 176
  • 334
0
votes
1 answer

how to make redirect when the the login limit expires?

on my page I use a lot of Jquery-ajax to some user action (sending messages in system, adding comments to articles etc.). This functionality is allow only for registered a logged users. for…
Davecz
  • 1,199
  • 3
  • 19
  • 43
0
votes
2 answers

session logout page issue in iframe using jsp/servlet

Hi i'm working in the web application using jsp/sevlet,i'm facing the session logout page issue in iframe i use the following code in my parent page for my session time out