22 writes to Expires
HttpAbstractions.SampleApp (1)
Program.cs (1)
43response.Cookies.Append("Cookie1", "value1", new CookieOptions() { Expires = DateTimeOffset.UtcNow + TimeSpan.FromDays(1) });
Microsoft.AspNetCore.Authentication (1)
RemoteAuthenticationOptions.cs (1)
175cookieOptions.Expires = expiresFrom.Add(_options.RemoteAuthenticationTimeout);
Microsoft.AspNetCore.Authentication.Cookies (5)
CookieAuthenticationHandler.cs (3)
233cookieOptions.Expires = null; 277cookieOptions.Expires = _refreshExpiresUtc.Value.ToUniversalTime(); 332signInContext.CookieOptions.Expires = expiresUtc.ToUniversalTime();
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
306Expires = DateTimeOffset.UnixEpoch, 334Expires = DateTimeOffset.UnixEpoch,
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectOptions.cs (1)
358cookieOptions.Expires = expiresFrom.Add(_options.ProtocolValidator.NonceLifetime);
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterOptions.cs (1)
125options.Expires = expiresFrom.Add(_twitterOptions.RemoteAuthenticationTimeout);
Microsoft.AspNetCore.CookiePolicy.Test (3)
CookieChunkingTests.cs (1)
35Expires = now.AddMinutes(5),
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
306Expires = DateTimeOffset.UnixEpoch, 334Expires = DateTimeOffset.UnixEpoch,
Microsoft.AspNetCore.Http (1)
Internal\ResponseCookies.cs (1)
165Expires = DateTimeOffset.UnixEpoch,
Microsoft.AspNetCore.Http.Abstractions (1)
CookieBuilder.cs (1)
118Expires = Expiration.HasValue ? expiresFrom.Add(Expiration.GetValueOrDefault()) : default(DateTimeOffset?)
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
39Expires = options.Expires;
Microsoft.AspNetCore.Http.Tests (2)
CookieOptionsTests.cs (1)
21Expires = DateTime.UtcNow,
ResponseCookiesTest.cs (1)
188Expires = time,
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
306Expires = DateTimeOffset.UnixEpoch, 334Expires = DateTimeOffset.UnixEpoch,
Microsoft.AspNetCore.Rewrite (1)
UrlActions\ChangeCookieAction.cs (1)
52Expires = now.Add(Lifetime)
SignalR.Client.FunctionalTestApp (2)
Startup.cs (2)
182var expiredCookieOptions = new CookieOptions() { Expires = DateTimeOffset.Now.AddHours(-1) }; 196cookieOptions.Expires = DateTimeOffset.Now.AddHours(-1);
11 references to Expires
Microsoft.AspNetCore.Authentication (1)
RemoteAuthenticationOptions.cs (1)
173if (!Expiration.HasValue || !cookieOptions.Expires.HasValue)
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationOptions.cs (1)
131/// This is separate from the value of <see cref="CookieOptions.Expires"/>, which specifies
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectOptions.cs (1)
356if (!Expiration.HasValue || !cookieOptions.Expires.HasValue)
Microsoft.AspNetCore.Http.Abstractions (1)
CookieBuilder.cs (1)
103/// <param name="expiresFrom">The time to use as the base for computing <see cref="CookieOptions.Expires" />.</param>
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
CookieBuilderTests.cs (2)
31Assert.Null(new CookieBuilder().Build(new DefaultHttpContext()).Expires); 35Assert.Equal(now.AddHours(1), options.Expires);
Microsoft.AspNetCore.Http.Features (2)
CookieOptions.cs (2)
39Expires = options.Expires; 117Expires = Expires,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
CookieTempDataProviderTest.cs (3)
177Assert.Null(cookieInfo.Options.Expires); 212Assert.Null(cookieInfo.Options.Expires); 262Assert.Null(cookieInfo.Options.Expires);