expired-sessions

Set expire time for session variables

僤鯓⒐⒋嵵緔 提交于 2020-05-09 08:05:10
问题 I'm getting mad with the fact that a client could change cookie values, because I realized that everything on my website was pretty unsecure. Before I just setted a cookie with an expire time, and I was sure that a given user would have kept a particular property (such as "logged in" or "he has this privilege") for that exact amount of time (unless he cleared the cache). Now that I have to switch everything to sessions, which doesn't have an expire time. So, while for the login I implemented

PHP session expiring too early

元气小坏坏 提交于 2020-01-15 11:33:33
问题 I have an issue, my apps sessions are expiring unexpectedly after about 15 minutes. I need them to expire after 4 hours. The server is Centos 5.5, PHP is 5.3.2. Below is my code (included in an global header). <?php session_name('MobileSuiteHQ'); if(!session_id()) { session_start(); } ini_set('memory_limit', '512M'); ini_set('session.gc_maxlifetime', 14400000); ini_set('session.cookie_lifetime', 14400000); ini_set('session.gc_divisor', 1000); ini_set('session.use_cookies', 0); ini_set('max

Spring security invalid session redirect

跟風遠走 提交于 2019-12-23 11:48:33
问题 I'm using spring security 4.0.1 inside a spring boot 1.2.3 web application ( and also with spring-session 1.0.1, but this is irrelevant for the case ). I do have a private area, and an all access area ( "/about", "/","/contact",... more than 20 pages ) for which every user can access. ( it's like a web-shop ) Whenever a logged-in user session expires,Spring detects an invalid session and redirects the user to the '.invalidSessionUrl("/session/error/invalid")' However, i only want to be

OAuth grant flow - tokens expiration

为君一笑 提交于 2019-12-01 09:07:11
I'm developing an Android app that uses Outlook Calendar REST API. I'm trying to keep in synch and updated the calendars of multiple users (meeting rooms). My questions are: 1) After how long does the initial authorization code expires? 2) And for the refresh token instead? The access token expires after 60 mins. I can't get if for the refresh token expires after 6 hours, 14 days or 90 days. 3) Is the latter configurable? Can I make it not expire? ` UPDATE: (from https://msdn.microsoft.com/en-us/library/azure/dn645542.aspx ) "The lifetime of the refresh token is not provided and varies based

OAuth grant flow - tokens expiration

一笑奈何 提交于 2019-12-01 06:22:13
问题 I'm developing an Android app that uses Outlook Calendar REST API. I'm trying to keep in synch and updated the calendars of multiple users (meeting rooms). My questions are: 1) After how long does the initial authorization code expires? 2) And for the refresh token instead? The access token expires after 60 mins. I can't get if for the refresh token expires after 6 hours, 14 days or 90 days. 3) Is the latter configurable? Can I make it not expire? ` UPDATE: (from https://msdn.microsoft.com/en