Questions tagged [slidingexpiration]
8 questions
5
votes
5 answers
Form authentication slidingExpiration does not work
I have below code
int intTimeout = (FormsAuthentication.Timeout.Hours * 60) +
FormsAuthentication.Timeout.Minutes;
var authTicket = new FormsAuthenticationTicket(1, Utility.userCookie, DateTime.Now,
DateTime.Now.AddMinutes(intTimeout), true,…

Md. Parvez Alam
- 4,326
- 5
- 48
- 108
4
votes
0 answers
ASP.NET "auth" cookie value changes, but old value remains valid
I have a ASP.NET MVC application using form authentication.
When the user logs in, then I get an auth cookie set to some value. I.E.:
auth = XXXYYY001
All good.
Now, when half the session expiration time passes (as stated in the documentation) when…

Pablo Santa Cruz
- 176,835
- 32
- 241
- 292
3
votes
2 answers
Hook into IdentityServer4 session cookie sliding expiration
I need to run some custom code (manage another custom cookie), at the moment when IdentityServer performs the sliding of the expiration time on the session cookie (idsrv).
How or where can I hook into the IdentityServer pipeline to accomplish…

Liviu Mandras
- 6,540
- 2
- 41
- 65
1
vote
2 answers
.NET Memory SlidingExpiration doesn't working as expected on AWS Lambda
I'm using the Microsoft.Extensions.Caching.Memory (Version 6.1) and the item is removed from the memory cache after around 5 min without being accessed.
I tried to add explicit values to AbsoluteExpirationRelativeToNow and SlidingExpiration.
Locally…

Itamar Ribeiro
- 27
- 10
0
votes
1 answer
getAndExpire , GETEX Error in Spring boot Data Redis package for Azure Cache for Redis Integration
I am working on Springboot service integration with Azure Cache for Redis for high performant application. I want to ensure that when Cache entry is stored with either just string data type or with hashmap data type , the cache entry has sliding…

AlwaysDeveloper
- 15
- 2
- 8
0
votes
0 answers
How to override CheckForRefreshAsync in CookieAuthenticationHandler?
I am using the default cookie based authentication in .Net 6. On successful authentication application is setting up cookie with sliding expiration as true as I want to refresh the token periodically.
Frontend of application is also storing the…

Nishant Tayal
- 1
- 1
0
votes
0 answers
Memory cache is not getting released after expiration
I used System.Runtime.Caching.ObjectCache to store images in video. After expiration interval, cache is getting expired. But memory didn’t get released. Same behavior was observed in .Net framework 4.6.1 and .Net 5.0. Please find the code snippet…

Pavithra
- 1
-1
votes
1 answer
S3 presigned url with sliding expiration
We can create S3 presigned url either using default 1 hour lifetime or custom lifetime.
But, can we create an S3 presigned url with sliding expiration?
EDIT:
If the lifetime of the url is 10 minutes and if it is accessed at the 9th minute, its…

MAK
- 1,915
- 4
- 20
- 44