What's causing “Session state has created a session id, but cannot save it because the response was already flushed by the application.”

前端 未结 5 1557
礼貌的吻别
礼貌的吻别 2020-12-07 18:37

I\'m getting this fault intermittently.

I found this link which summarises fairly well what I was able to find on the Google: http://www.wacdesigns.com/2009/02/03/s

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-07 19:05

    I have!

    In the global.asax file you do this :

    void Session_Start(object sender, EventArgs e) 
    {
        // Code that runs when a new session is started
        string sessionId = Session.SessionID;
    }
    

    So easy. It works!

提交回复
热议问题