zqwuwei的技术博客

理论指导实践,在实践中更好的理解理论
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

为什么ASP.NET_SessionId cookie没有创建

Posted on 2019-07-10 18:32  zqwuwei  阅读(288)  评论(0)    收藏  举报

one of following two ways will made the ASP.NET_SessionId cookie not created.

1. set sessionState mode to Off in web.config
<sessionState mode="Off" />

2. missed following code in global.asax
void Session_Start(object sender, EventArgs e)
{
// Code that runs when a new session is started

}