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 timeout on database call in ASP.NET MVC Entity Framework 4.3

I am developing classified ads application in ASP.NET MVC3 using Entity Framework 4.3 for database. I am facing problem when user session is active and execute any database query by entity framework then application session time's out…
Shoaib Ijaz
  • 5,347
  • 12
  • 56
  • 84
0
votes
1 answer

How would one technically describe this desired website functionality(involving timeout, log-in)

On websites like eBay, if you would time-out of your session, and say you were looking at a shoe, when you come back(after your sleep) to the page, you'd see the shoe, but you're logged out. However, once you log back in, you get directed to that…
Caffeinated
  • 11,982
  • 40
  • 122
  • 216
0
votes
1 answer

Is it possible to catch ViewExpriedException in PhaseListener?

For logging purposes, I am interested in detecting when a session timeout occurs in my JSF application. I have implemented a PhaseListener that checks if users are logged in and have their session already active. My implementation of afterPhase…
jmrodrigg
  • 600
  • 6
  • 24
0
votes
2 answers

JSF ViewExpiredExceptionHandler NullPointerException

I use Apache MyFaces 2 on WebSphere Application Server 8. I want to implement a custom ExceptionHandler that handles ViewExpiredException. I use the code which BalusC posted . The Factory is called at the right time but I get a NullPointerException…
veote
  • 1,400
  • 9
  • 33
  • 62
0
votes
1 answer

Is there a way to check server's session timeout without having access to the server itself?

Basically I am interacting with a .NET web application and I want to know what is the session timeout of that server. I know that usually for IIS 6 is between 8-20 minutes by default but I want the specific timeout without speculating or keeping…
Clyde
  • 83
  • 9
0
votes
1 answer

Session timing out - bit of explanation please

From what I thought I understood from sessions, this should be the case: session times out based on what is set in the php.ini, lets say 30 minutes if a user continues to browse and we update, lets say $_SESSION['last_activity']=time();, then the…
scott
  • 1,068
  • 1
  • 9
  • 20
0
votes
1 answer

Unset session after sometime [How to Delete Data After Some Time]

i have a Simple Chat script of php it has no database it work fine. but it create and store all chats in a file msg.html i want to delete these chats after some time. How to delete these chats after some time about 30min. The Php Code is here below…
IamRobin
  • 1
  • 1
0
votes
2 answers

Example of a GET page that returns only 'OK' in its response

I am trying to use the jQuery plugin 'timeout-dialog' in my ASP.Net app to caution the user that his/her session is about to expire. This plugin is at: http://rigoneri.github.com/timeout-dialog.js/. It says that one of the parameters called…
Sunil
  • 20,653
  • 28
  • 112
  • 197
0
votes
1 answer

Increase session timeout in asp.net 2.0 on IIS 6.1 with windows 2008 R2 Datacenter

I stuck in increasing timeout for websites in asp.net 2.0 on IIS 6.1 with windows 2008 R2 Datacenter. thx for help in advance...
user168507
  • 871
  • 4
  • 16
  • 33
0
votes
1 answer

Session Timeout in Google App Engine Struts 2

What is the default session timeout in Google App Engine? How to set the session timeout in Google App Engine, in Struts 2 application. Any reference/docs on session in GAE? Thanks
JR Galia
  • 17,229
  • 19
  • 92
  • 144
0
votes
2 answers

How to Redirect or Close Browser after Session TimeOut in ASP.NET?

I have a Catcha value( Security Code ) that is store in Session on PageLoad and that is going to be used when user clicks the search button. If the User is IDLE for more than 20 Min the value of Session is get expired. And when user clicks on Search…
SHEKHAR SHETE
  • 5,964
  • 15
  • 85
  • 143
0
votes
3 answers

check session is about to end then show alert to user

can we check that if user session set into IIS, is about to expire with in some second and if it is then can we show any alert or notification to user
Buzz
  • 6,030
  • 4
  • 33
  • 47
0
votes
1 answer

Session expired to early where I uploaded my project on a shared server

I uploded my Asp.Net 4 on a shared server. Every thing going right on the client , but when I upload it on my host provider , my session expired to early this is my WebConfig code : Then I tried to use another…
Ali Foroughi
  • 4,540
  • 7
  • 42
  • 66
0
votes
3 answers

Session in asp.net expiration

I am using a session to pass a variable but on the server after logging in the session automatically expires after 2 -3 minutes, What could be the problem? The webconfig file:
0
votes
2 answers

asp.net mvc 3 forms authentication and ie9

Well I'm totally stumped on this one. Here is the scenario asp.net mvc3 web application, has been working fine for quite a few months, but I have been going through patches and new releases weekly or so with new functionality. The codebase itself…