We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
This change removes APIs for configuring session cookies that were marked obsolete as part of aspnet/Announcements#257
3.0
Obsolete APIs were present in the runtime.
Obsolete APIs were removed.
This change makes our APIs for configuring features that use cookies consistent across ASP.NET Core.
Migrate usage of the removed APIs to their newer replacements
public void ConfigureServices(ServiceCollection services) { services.AddSession(options => { // Removed obsolete APIs options.CookieName = "SessionCookie"; options.CookieDomain = "contoso.com"; options.CookiePath = "/"; options.CookieHttpOnly = true; options.CookieSecure = CookieSecurePolicy.Always; // new API options.Cookie.Name = "SessionCookie"; options.Cookie.Domain = "contoso.com"; options.Cookie.Path = "/"; options.Cookie.HttpOnly = true; options.Cookie.SecurePolicy = CookieSecurePolicy.Always; }); }
ASP.NET Core
SessionOptions.CookieName SessionOptions.CookieDomain SessionOptions.CookiePath SessionOptions.CookieHttpOnly SessionOptions.CookieSecure
The text was updated successfully, but these errors were encountered:
scottaddie
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Session: obsolete APIs removed in 3.0
This change removes APIs for configuring session cookies that were marked obsolete as part of aspnet/Announcements#257
Version introduced
3.0
Old behavior
Obsolete APIs were present in the runtime.
New behavior
Obsolete APIs were removed.
Reason for change
This change makes our APIs for configuring features that use cookies consistent across ASP.NET Core.
Recommended action
Migrate usage of the removed APIs to their newer replacements
Category
ASP.NET Core
Affected APIs
SessionOptions.CookieName
SessionOptions.CookieDomain
SessionOptions.CookiePath
SessionOptions.CookieHttpOnly
SessionOptions.CookieSecure
Issue metadata
The text was updated successfully, but these errors were encountered: