diff --git a/src/Middleware/Session/src/SessionOptions.cs b/src/Middleware/Session/src/SessionOptions.cs
index 4d456b0f60..b792deea6d 100644
--- a/src/Middleware/Session/src/SessionOptions.cs
+++ b/src/Middleware/Session/src/SessionOptions.cs
@@ -43,66 +43,6 @@ namespace Microsoft.AspNetCore.Builder
///
public TimeSpan IOTimeout { get; set; } = TimeSpan.FromMinutes(1);
- #region Obsolete API
- ///
- ///
- /// This property is obsolete and will be removed in a future version. The recommended alternative is on .
- ///
- ///
- /// Determines the cookie name used to persist the session ID.
- ///
- ///
- [Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is " + nameof(Cookie) + "." + nameof(CookieBuilder.Name) + ".")]
- public string CookieName { get => Cookie.Name; set => Cookie.Name = value; }
-
- ///
- ///
- /// This property is obsolete and will be removed in a future version. The recommended alternative is on .
- ///
- ///
- /// Determines the domain used to create the cookie. Is not provided by default.
- ///
- ///
- [Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is " + nameof(Cookie) + "." + nameof(CookieBuilder.Domain) + ".")]
- public string CookieDomain { get => Cookie.Domain; set => Cookie.Domain = value; }
-
- ///
- ///
- /// This property is obsolete and will be removed in a future version. The recommended alternative is on .
- ///
- ///
- /// Determines the path used to create the cookie.
- /// Defaults to .
- ///
- ///
- [Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is " + nameof(Cookie) + "." + nameof(CookieBuilder.Path) + ".")]
- public string CookiePath { get => Cookie.Path; set => Cookie.Path = value; }
-
- ///
- ///
- /// This property is obsolete and will be removed in a future version. The recommended alternative is on .
- ///
- ///
- /// Determines if the browser should allow the cookie to be accessed by client-side JavaScript. The
- /// default is true, which means the cookie will only be passed to HTTP requests and is not made available
- /// to script on the page.
- ///
- ///
- [Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is " + nameof(Cookie) + "." + nameof(CookieBuilder.HttpOnly) + ".")]
- public bool CookieHttpOnly { get => Cookie.HttpOnly; set => Cookie.HttpOnly = value; }
-
- ///
- ///
- /// This property is obsolete and will be removed in a future version. The recommended alternative is on .
- ///
- ///
- /// Determines if the cookie should only be transmitted on HTTPS requests.
- ///
- ///
- [Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is " + nameof(Cookie) + "." + nameof(CookieBuilder.SecurePolicy) + ".")]
- public CookieSecurePolicy CookieSecure { get => Cookie.SecurePolicy; set => Cookie.SecurePolicy = value; }
- #endregion
-
private class SessionCookieBuilder : CookieBuilder
{
public SessionCookieBuilder()
diff --git a/src/Middleware/Session/src/baseline.netcore.json b/src/Middleware/Session/src/baseline.netcore.json
index ff9ee6811f..0958674919 100644
--- a/src/Middleware/Session/src/baseline.netcore.json
+++ b/src/Middleware/Session/src/baseline.netcore.json
@@ -1,5 +1,5 @@
{
- "AssemblyIdentity": "Microsoft.AspNetCore.Session, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60",
+ "AssemblyIdentity": "Microsoft.AspNetCore.Session, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60",
"Types": [
{
"Name": "Microsoft.Extensions.DependencyInjection.SessionServiceCollectionExtensions",
diff --git a/src/Middleware/Session/src/breakingchanges.netcore.json b/src/Middleware/Session/src/breakingchanges.netcore.json
new file mode 100644
index 0000000000..eb0235bd59
--- /dev/null
+++ b/src/Middleware/Session/src/breakingchanges.netcore.json
@@ -0,0 +1,52 @@
+[
+ {
+ "TypeId": "public class Microsoft.AspNetCore.Builder.SessionOptions",
+ "MemberId": "public Microsoft.AspNetCore.Http.CookieSecurePolicy get_CookieSecure()",
+ "Kind": "Removal"
+ },
+ {
+ "TypeId": "public class Microsoft.AspNetCore.Builder.SessionOptions",
+ "MemberId": "public System.Boolean get_CookieHttpOnly()",
+ "Kind": "Removal"
+ },
+ {
+ "TypeId": "public class Microsoft.AspNetCore.Builder.SessionOptions",
+ "MemberId": "public System.String get_CookieDomain()",
+ "Kind": "Removal"
+ },
+ {
+ "TypeId": "public class Microsoft.AspNetCore.Builder.SessionOptions",
+ "MemberId": "public System.String get_CookieName()",
+ "Kind": "Removal"
+ },
+ {
+ "TypeId": "public class Microsoft.AspNetCore.Builder.SessionOptions",
+ "MemberId": "public System.String get_CookiePath()",
+ "Kind": "Removal"
+ },
+ {
+ "TypeId": "public class Microsoft.AspNetCore.Builder.SessionOptions",
+ "MemberId": "public System.Void set_CookieDomain(System.String value)",
+ "Kind": "Removal"
+ },
+ {
+ "TypeId": "public class Microsoft.AspNetCore.Builder.SessionOptions",
+ "MemberId": "public System.Void set_CookieHttpOnly(System.Boolean value)",
+ "Kind": "Removal"
+ },
+ {
+ "TypeId": "public class Microsoft.AspNetCore.Builder.SessionOptions",
+ "MemberId": "public System.Void set_CookieName(System.String value)",
+ "Kind": "Removal"
+ },
+ {
+ "TypeId": "public class Microsoft.AspNetCore.Builder.SessionOptions",
+ "MemberId": "public System.Void set_CookiePath(System.String value)",
+ "Kind": "Removal"
+ },
+ {
+ "TypeId": "public class Microsoft.AspNetCore.Builder.SessionOptions",
+ "MemberId": "public System.Void set_CookieSecure(Microsoft.AspNetCore.Http.CookieSecurePolicy value)",
+ "Kind": "Removal"
+ }
+ ]
\ No newline at end of file