diff --git a/Program.cs b/Program.cs index 1091a09..7289e26 100644 --- a/Program.cs +++ b/Program.cs @@ -264,7 +264,7 @@ app.Use(async (ctx, next) => app.Use(async (ctx, next) => { - var af = ctx.Request.Cookies[".Divers.Admin.AntiForgery.v2"]; + var af = ctx.Request.Cookies[".Divers.Admin.AntiForgery"]; app.Logger.LogInformation("AF cookie present={Present} len={Len} prefix={Prefix}", af != null, af?.Length ?? 0, @@ -277,6 +277,8 @@ app.Use(async (ctx, next) => foreach (var sc in setCookies) if (sc.Contains(".Divers.Admin.AntiForgery", StringComparison.OrdinalIgnoreCase)) app.Logger.LogInformation("SET-COOKIE AF: {SetCookie}", sc); + else if (sc.Contains(".Divers.Admin.Session", StringComparison.OrdinalIgnoreCase)) + app.Logger.LogInformation("SET-COOKIE SESSION: {SetCookie}", sc); } });