1
0 Comments

Refreshing cookie ticket in .Net Core MVC

Hi all,

I'm using .net core and openID Connect, with cookie configured with SlidingExpiration = true and ExpireTimeSpan = 20 mins.

What I observe is that while I am working on task in the application and not knowing the cookie's ticket has expire due to the ExpireTimeSpan. The application will not execute any function example: prompting me that time is about the expire or log me out.

What I understand so far is that SlidingExpiration, should provide me with a new ticket if they refresh the page 10 mints or so, but what I notice it is otherwise.

So I wonder is there anyway I can get the cookie's ticket renew before the expire and the task/process should be transparent to me.

Thank you in advance ladies and gentlemen

on June 8, 2021