You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
@@ -42,7 +42,6 @@ public CookieAuthenticationOptions()
42
42
/// <seealso cref="CookieBuilder.SameSite"/> defaults to <see cref="SameSiteMode.Lax"/>.
43
43
/// <seealso cref="CookieBuilder.HttpOnly"/> defaults to <c>true</c>.
44
44
/// <seealso cref="CookieBuilder.SecurePolicy"/> defaults to <see cref="CookieSecurePolicy.SameAsRequest"/>.
45
-
/// <seealso cref="CookieBuilder.Expiration"/> defaults to 14 days.
46
45
/// </para>
47
46
/// </summary>
48
47
/// <remarks>
@@ -60,9 +59,7 @@ public CookieAuthenticationOptions()
60
59
/// 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.
61
60
/// </para>
62
61
/// <para>
63
-
/// <seealso cref="CookieBuilder.Expiration"/> controls how much time the cookie will remain valid from the point it is created. The expiration
64
-
/// information is in the protected cookie ticket. Because of that an expired cookie will be ignored
65
-
/// even if it is passed to the server after the browser should have purged it
62
+
/// <seealso cref="CookieBuilder.Expiration"/> is currently ignored. Use <see cref="ExpireTimeSpan"/> to control lifetime of cookie authentication.
66
63
/// </para>
67
64
/// </remarks>
68
65
publicCookieBuilderCookie
@@ -140,6 +137,19 @@ public CookieBuilder Cookie
140
137
/// </summary>
141
138
publicITicketStoreSessionStore{get;set;}
142
139
140
+
/// <summary>
141
+
/// <para>
142
+
/// Controls how much time the authentication ticket stored in the cookie will remain valid from the point it is created
143
+
/// The expiration information is stored in the protected cookie ticket. Because of that an expired cookie will be ignored
144
+
/// even if it is passed to the server after the browser should have purged it.
145
+
/// </para>
146
+
/// <para>
147
+
/// This is separate from the value of <seealso cref="CookieOptions.Expires"/>, which specifies
148
+
/// how long the browser will keep the cookie.
149
+
/// </para>
150
+
/// </summary>
151
+
publicTimeSpanExpireTimeSpan{get;set;}
152
+
143
153
#region Obsolete API
144
154
/// <summary>
145
155
/// <para>
@@ -201,23 +211,6 @@ public CookieBuilder Cookie
201
211
/// </summary>
202
212
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is "+nameof(Cookie)+"."+nameof(CookieBuilder.SecurePolicy)+".")]
/// This property is obsolete and will be removed in a future version. The recommended alternative is <seealso cref="CookieBuilder.Expiration"/> on <see cref="Cookie"/>.
208
-
/// </para>
209
-
/// <para>
210
-
/// Controls how much time the cookie will remain valid from the point it is created. The expiration
211
-
/// information is in the protected cookie ticket. Because of that an expired cookie will be ignored
212
-
/// even if it is passed to the server after the browser should have purged it
213
-
/// </para>
214
-
/// </summary>
215
-
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is "+nameof(Cookie)+"."+nameof(CookieBuilder.Expiration)+".")]
0 commit comments