We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The SlidingExpirationInSeconds is never been set. It's always 1200 seconds no matter what I do.
services.AddMemoryCache(); services.AddDistributedSqlServerCache(options => { options.ConnectionString = Env.GetString("DEFAULT_CONNECTION"); options.SchemaName = "dbo"; options.TableName = "Cache"; options.DefaultSlidingExpiration = TimeSpan.FromDays(1); }); services.AddSession(); app.UseSession(new SessionOptions { Cookie = new CookieBuilder { Name = ".AspNetCore.Session", SameSite = SameSiteMode.None, } });
I set it by doing this:
Session.SetString("OAuthToken", token.AccessToken);
The text was updated successfully, but these errors were encountered:
You want to set the Session IdleTimeout instead, it overrides the default sliding expiration.
Sorry, something went wrong.
No branches or pull requests
The SlidingExpirationInSeconds is never been set. It's always 1200 seconds no matter what I do.
I set it by doing this:
The text was updated successfully, but these errors were encountered: