New issue

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

Session: obsolete APIs removed in 3.0 #331

JunTaoLuo opened this Issue Dec 13, 2018 · 0 comments


None yet
1 participant
Copy link

JunTaoLuo commented Dec 13, 2018

This is a follow up to #257. The 3.0 release will remove the obsolete Cookie APIs in Session.

The recommended changes are:

public void ConfigureServices(ServiceCollection services)
    services.AddSession(options =>
        // Removed obsolete APIs
        options.CookieName = "SessionCookie";
        options.CookieDomain = "";
        options.CookiePath = "/";
        options.CookieHttpOnly = true;
        options.CookieSecure = CookieSecurePolicy.Always;
        // new API
        options.Cookie.Name = "SessionCookie";
        options.Cookie.Domain = "";
        options.Cookie.Path = "/";
        options.Cookie.HttpOnly = true;
        options.Cookie.SecurePolicy = CookieSecurePolicy.Always;

See the linked issue for more details and discussion.

@JunTaoLuo JunTaoLuo added this to the 3.0.0 milestone Dec 13, 2018

@aspnet aspnet locked and limited conversation to collaborators Dec 13, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.