session-timeout

Remove from cache specific user data on Session_End

Hi, I'm inserting something in the cache when the user does a login. Now I want to delete that from the cache when the user's session expires. HttpContext is null .. so I don't know for which user the session expired. How can I go about finding this ? EDIT: unfortunately SessionID doesn't offer me much. What i'm doing in this particu...

How can you display a session timeout warning that is smart enough to handle multiple open browsers or tabs

I have implemented a session timeout warning using javascript that simply asks the user if they want to extend their session or logout. The problem is that this is for an intranet portal where power users will often have several browser windows or tabs open at the same time to the application. Currently, they will be prompted that they...

ASP.Net Session Timeout: Why 20 minutes used as default?

In ASP.Net the default Session Timeout is set to 20 minutes. Why so? Is there any specific reason behind it? Thanking you. ...

ASP.NET Push Redirect on Session Timeout

I'm looking for a tutorial, blog entry, or some help on the technique behind websites that automatically push users (ie without a postback) when the session expires. Any help is appreciated ...

Login timeouts: in what cases are do you use them?

I'm wondering when login timeouts are being used, specifically when using same session (same browser session). On a number of sites I have completed recently I have added 60 minute timeouts and they seem to be causing problems, such as users are not able to fill out larger forms (like a resume submission--people don't think of copying th...

sql session time out recommondation

One of my applications uses sql session state, the timeout is currently set to 20 minutes. My question is, since this is stored in the database and not in server memory, I should be able to increase the timeout without any significant performance issues right? I dont really understand the importance of the timeout for the database sess...

How do I determine when a user has an idle timeout in Django?

I would like to audit when a user has experienced an idle timeout in my Django application. In other words, if the user's session cookie's expiration date exceeds the SESSION_COOKIE_AGE found in settings.py, the user is redirected to the login page. When that occurs, an audit should also occur. By "audit", I mean a record should be wri...

what are the best practices/strategies to handle session timeout in MOSS2007?

I have a MOSS2007 web application (created using publishing site template). In this app, user is allowed to add various items of interest. Those item of interest are saved in DB as a group. Thus each user has more than one group of interests. User is allowed to add/delete/edit interests within a group at will. My queries are as follows ...

ASP.NET Session_End called immediately after Session_Start after a session timeout

I have handlers for my Session_Start and Session_End events. When I first start the application, everything works fine. If I leave the session and the standard timeout occurs, I watch my Session_End throw. I'm expecting that behavior. Let's say though, I come back after the timeout and refresh a page. The Session_Start method runs,...

Asp.net: Implementing Auto-Logout functionality

Hi, I have to implement auto-logout functionality in one of my projects and i just cant figure out where to start looking for ideas but SO. What i need is for the application to redirect the user to the login page if the user session has expired. Please tell me as to what should be my approach to tackle this requirement. Problem St...

Session timeouts in asp.net on a dedicated server

Hi, I have a asp.net website hosted in the dedicated server.I'm using web.config to handle the session timeouts and that is 60 minutes.I did the following settings on the dedicated server (windows server 2003 and IIS 6.0 versions) In the default web site property of IIS-->ASP.net tab-->Edit configuration-->Session timeouts -->60 In ...

set long timeout for selected session variable

Hi I am using asp.net 2.0 and I want admin session variable timeout for 1 hour. Is it possible? and How? I am using windows authentication. ...

Random Session Invalidation

I am running a J2EE web application in Tomcat, and recently I have been tasked with adding metrics to the application. I am using a SessionListener to detect when the session is destroyed, and then uploading the metrics to a database. My Session timeout is set in my web.xml to 30 minutes, and I am not invalidating the session anywhere ...

Session Time out in IIS 7

Hi, I like to host asp.net web application in IIS 7.0 (windows server 2008). I configured session state as sessionstate mode="inproc" timeout = 120. Even the session expires within 15 seconds. What could be the problem?. Thanks, P.Gopalakrishnan. ...

What happens to the $_SESSION array if a PHP session times out in the middle of a request?

I have always wondered, if a PHP session times out during the middle of executing a script, will the contents of the $_SESSION array still be available until script execution ends? For example: session_start(); if(! isset($_SESSION['name'])) { echo 'Name is not set'; exit; } // imagine there is a bunch of code here and that th...

How to determine Session Timeout using when reusing CookieContainer

I have the following code which re-uses a CookieContainer which logs in on the first request, but just uses the cookie container for requests after. After a period of time if idle the site will give a Session Timeout, I will need to perform the login again. Q: Can I determine (with the cookie container object) if the timeout has happen...

Firefox session timeout immediately

I have a the following in my header.html: <META HTTP-EQUIV="refresh" CONTENT="<%= session.getMaxInactiveInterval() %>; URL=/nmt/extranet/asp/error.jsp" /> and the following in my web.xml <session-config> <session-timeout>60</session-timeout> After an hour the session times out and redirects me to the error.jsp in IE and Opera b...

Tomcat Session Eviction to Avoid OutOfMemoryError

We are running a vendor-supplied webapp in Tomcat 5.5 using the StandardManager for sessions (in memory). As sessions can get quite large (20M+), running out of heap space is a serious concern. Users want to keep sessions around for a couple of hours if possible but would rather evict sessions than run out of heap space. It does not a...

Session timeouts in PHP: best practices

What is the actual difference between session.gc_maxlifetime and session_cache_expire() ? Suppose I want the users session to be invalid after 15 minutes of non-activity (and not 15 after it was first opened). Which one of these will help me there? I also know I can do session_set_cookie_params() which can set the user's cookie to exp...

Iframe keep-alive function - what is needed to reset the session timeout?

I have a hidden iframe that refreshes every now and then, in order to keep the ASP.NET session up and running, for as long as the user is online. However, I have been getting reports of users experiencing session timeouts, so now I am in doubt of what is needed to reset the session timer. The hidden iframe's content page (simple html p...