19 writes to Path
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgeryTokenStore.cs (2)
88options.Path = _options.Cookie.Path; 95options.Path = pathBase;
Microsoft.AspNetCore.Authentication (1)
RequestPathBaseCookieBuilder.cs (1)
34options.Path = !string.IsNullOrEmpty(path)
Microsoft.AspNetCore.CookiePolicy.Test (2)
CookieChunkingTests.cs (2)
33Path = "/bar", 285Path = "/",
Microsoft.AspNetCore.Http (1)
Internal\ResponseCookies.cs (1)
108Delete(key, new CookieOptions() { Path = "/" });
Microsoft.AspNetCore.Http.Abstractions (1)
CookieBuilder.cs (1)
111Path = Path ?? "/",
Microsoft.AspNetCore.Http.Features (2)
CookieOptions.cs (2)
27Path = "/"; 38Path = options.Path;
Microsoft.AspNetCore.Http.Tests (5)
CookieOptionsTests.cs (1)
26Path = "/foo",
ResponseCookiesTest.cs (4)
134responseCookies.Delete(cookie.Key, new CookieOptions() { Domain = cookie.Domain, Path = cookie.Path }); 164responseCookies.Append(cookie.Key, cookie.Key, new CookieOptions() { Domain = cookie.Domain, Path = cookie.Path }); 165responseCookies.Delete(cookie.Key, new CookieOptions() { Domain = cookie.Domain, Path = cookie.Path }); 187Path = "/",
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
CookieTempDataProvider.cs (2)
127cookieOptions.Path = _options.Cookie.Path; 134cookieOptions.Path = pathBase;
Microsoft.AspNetCore.Rewrite (2)
UrlActions\ChangeCookieAction.cs (2)
51Path = Path, 63Path = Path
Microsoft.AspNetCore.Security.Microbenchmarks (1)
ChunkingCookieManagerBenchmark.cs (1)
32Path = "/",
24 references to Path
Microsoft.AspNetCore.Antiforgery.Test (3)
DefaultAntiforgeryTokenStoreTest.cs (3)
429Assert.Equal(expectedCookiePath, cookies.Options.Path); 469Assert.Equal(expectedCookiePath, cookies.Options.Path); 508Assert.Equal("/vdir1", cookies.Options.Path);
Microsoft.AspNetCore.Authentication (2)
RequestPathBaseCookieBuilder.cs (2)
9/// A cookie builder that sets <see cref="CookieOptions.Path"/> to the request path base. 19/// Configures <see cref="CookieOptions.Path"/> if not explicitly configured.
Microsoft.AspNetCore.Authentication.Cookies (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
257var pathHasValue = !string.IsNullOrEmpty(options.Path); 267rejectPredicate = value => predicate(value) && value.Contains("path=" + options.Path, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.CookiePolicy.Test (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
257var pathHasValue = !string.IsNullOrEmpty(options.Path); 267rejectPredicate = value => predicate(value) && value.Contains("path=" + options.Path, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http (3)
Internal\ResponseCookies.cs (3)
118var pathHasValue = !string.IsNullOrEmpty(options.Path); 126value.Contains($"path={opts.Path}", StringComparison.OrdinalIgnoreCase); 138value.Contains($"path={opts.Path}", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Abstractions (1)
CookieBuilder.cs (1)
31/// Determines the value that will be set for <see cref="CookieOptions.Path"/>.
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
CookieBuilderTests.cs (2)
51Assert.Equal(new CookieOptions().Path, new CookieBuilder().Build(new DefaultHttpContext()).Path);
Microsoft.AspNetCore.Http.Features (3)
CookieOptions.cs (2)
38Path = options.Path; 116Path = Path,
IResponseCookies.cs (1)
51/// <see cref="CookieOptions.Domain"/> and <see cref="CookieOptions.Path"/> values are especially important.
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
257var pathHasValue = !string.IsNullOrEmpty(options.Path); 267rejectPredicate = value => predicate(value) && value.Contains("path=" + options.Path, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
CookieTempDataProviderTest.cs (4)
50Assert.Equal("/", cookieInfo.Options.Path); 174Assert.Equal("/", cookieInfo.Options.Path); 209Assert.Equal(expectedCookiePath, cookieInfo.Options.Path); 258Assert.Equal(expectedCookiePath, cookieInfo.Options.Path);