Follow Us
  • Register
Errorbase is a collaborative writing project, that aims to build the largest trouble-shooting guide about all kinds of error messages.


+1 vote

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?

requested by (520 points)

1 Solution

0 votes

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.

solved by (1.6k points)