Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Dotnet Core cookies are getting expired within 5 minutes with WSFederation and SSO #9407
I have aspnet core 2.2 mvc application which is also using web api. I am using WSFederation Security with SSO. Login and Cookies are working fine with this but after 5 mins my cookies are getting expired somehow and my web api calls turns into 302 response because SSO redirects.
Here is my code.
Yes you can set ExpireTimeSpan. Note that value is primarily embedded inside the cookie and used by the server for verification. We don't set the normal cookie expiration value you'd see in the browser debugger tool sunless you set the "Remember Me" (IsPersistent) option for persisting cookies beyond this browser session.