When i try to start our web application, i'm getting this error:
Session state has created a session id, but cannot save it because the response was already flushed by the application.
Anybody recognize this symptom and can provide a solution?
Simply, add the following lines to the global.asax file void Session_Start(object sender, EventArgs e) { // Code that runs when a new session is started string sessionId = Session.SessionID; } This should fix the problem.
void Session_Start(object sender, EventArgs e) { // Code that runs when a new session is started string sessionId = Session.SessionID; }