小编Bil*_*kas的帖子

Session Fixation - Change sessionId on asp.net core 2

Based on what i have understood we have

  1. sessionId is stored in the cookie .AspNetCore.Session
  2. Deleting the cookies and Clearing the session does nothing.

    context.HttpContext.Session.Clear();
    foreach (var cookie in context.HttpContext.Request.Cookies.Keys)
    {
         context.HttpContext.Response.Cookies.Delete(cookie);
    }
    
    Run Code Online (Sandbox Code Playgroud)

所以问题是我们可以以sessionId某种方式改变,或者有没有办法保护我们免受会话修复?

session asp.net-core

6
推荐指数
2
解决办法
3412
查看次数

标签 统计

asp.net-core ×1

session ×1