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

How to save the user language

I'm saving the user language choice into the sessions like this: $this->session->set_userdata('language', $language); And then I'm setting the language depending on the session data (and making a English , as a default language). if ( !$language =…
Cyclone
  • 14,839
  • 23
  • 82
  • 114
0
votes
2 answers

Flex idle application to session time out

In my flex application, I'm using an event listener for session out in idle state. It's not working for me. Here is my code: I have placed below code in a method this.systemManager.addEventListener(FlexEvent.IDLE,onUserIDLE); and the calling…
Aravinth
  • 363
  • 2
  • 10
  • 33
0
votes
1 answer

Apache vs Weblogic session times

I'm working on a web-application which stores some info on the session, this has to stay active for at least 2 hours. ( a bit like a shopping-cart). I'm working with Apache in front of multiple weblogic instances. The Apache is for caching + just…
gotjee
  • 43
  • 2
  • 9
0
votes
2 answers

Remember the page after session timeout

In my website I want to redirect the user to the same page on which he/she was before the session timeout. I tried it by sending the url through querystring, but it didn't work out as the url also contained "&". My url was:…
user1509
  • 1,151
  • 5
  • 17
  • 45
0
votes
2 answers

Reset session timeout programmatically

In my project I have a requirement where in I want to alert an user with a popup whenever the inactive time is about to hit the session timeout time(For ex:5 mins in advance of session expiry), so that the user can click on continue button and…
ak123
  • 285
  • 2
  • 5
  • 15
0
votes
3 answers

How to set expiration time to session in the controller?

I need to set a session with expiration time of 5min in controller. How do i do it? I need something like: $this->container->get('session')->set('mysession', 'value', 'expiration'); in symfony2 way? Thanks!
VishwaKumar
  • 3,433
  • 8
  • 44
  • 72
0
votes
3 answers

Session time-out before due

Although quite inefficient, I needed to keep na ASP.NET session for 10 hours… (600 minutes) So I wrote in the web config...
-1
votes
1 answer

remember-me sessions spring security rest int GRAILS

I'm new to using Grails, and I need to create long sessions, in a rest API, but I can't find any information on how to do this, I would really appreciate your help currently my system is using grails 2.5,…
-1
votes
1 answer

ASP.NET web application session timeout issue on local IIS Express on Windows Server 2019?

I have an ASP.NET 4.x MVC application which is hosted on our local Windows 2019 Server on IIS Express. In web.config file session timeout is configured for 8 hours (Session mode in process). Which means if a user logins he shoud remain logged in for…
U Nazir
  • 427
  • 1
  • 5
  • 11
-1
votes
1 answer

Session timeout - priorities?

I have 3 applications running on the same server (GlassFish 4.1). Now each application have the same session timeout - 30 minutes. But I would like to change this, this time will depends on the application. Example: App 1 - 30 minutes App 2 - 20…
Eiten
  • 73
  • 8
-1
votes
1 answer

Angular 6 redirect on timeout

I am using angular 6 and want to implement the idle timeout to an error page. How do I do it? Also need to reset the time for any Interruptions like click, scroll etc. ng2-idle doesn't seem to be active, I have installed it but it's not recognized…
Sanjeev R
  • 1
  • 1
  • 2
-1
votes
1 answer

How to track logout times session in php and save it in mysql as database

I want to ask about logout times session in PHP. The code if the user logs into the system:
Yan Erick
  • 17
  • 1
  • 6
-1
votes
1 answer

Java: How to set timeout on client socket connection and disconnect idle users?

can you tell me how to set timeout on client socket connection? I've downloaded the example and I don't understand Java at all, so please help. I hope I won't get a bunch of hateful comments. Here is my "Client" class: import java.net.*; import…
-1
votes
1 answer

Spring MVC redirect to page with custom parameter when session expired

I can not find any solutions for Spring to redirect to page together with parameters when session is timed out. I need to redirect to login page with error like "Session expired". I have tried filter and method session.isNew(). But it does not work…
ovod
  • 1,118
  • 4
  • 18
  • 33
-1
votes
2 answers

Redirect to login if the other page is idle for 1 minutes c#

I want that if user is not accessing site for 1 minutes(means browser is idle for 1 min) , after 1 min. when user clicks on any link, his session should be expired and he has to provide login credentials again. Login Page: using System; using…
Reshma
  • 1,370
  • 7
  • 24
  • 38