Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > HttpError "Session state has created a session id..."

Reply
Thread Tools

HttpError "Session state has created a session id..."

 
 
PL
Guest
Posts: n/a
 
      11-10-2005

I've seen a few of these in the eventlog, what in the world would cause something like this,
why can't it save the session id cookie ??

Exception type: HttpException
Exception message: Session state has created a session id, but cannot save it because the response was already flushed by the
application.

System.Web.SessionState.SessionIDManager.SaveSessi onID(HttpContext context, String id, Boolean& redirected, Boolean& cookieAdded)
at System.Web.SessionState.SessionStateModule.CreateS essionId()
at System.Web.SessionState.SessionStateModule.Delayed GetSessionId()
at System.Web.SessionState.SessionStateModule.OnRelea seState(Object source, EventArgs eventArgs)
at System.Web.SessionState.SessionStateModule.OnEndRe quest(Object source, EventArgs eventArgs)
at System.Web.HttpApplication.SyncEventExecutionStep. System.Web.HttpApplication.IExecutionStep.Execute( )
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)

PL.


 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      11-10-2005
Never had this one. My guess would be defining a session variable after
having flushed the response buffer. Try perhaps a sequence such
Response.Write, Response.Flush, Session("Test")="A".

Let' us know...

--
Patrice

"PL" <> a écrit dans le message de
news:...
>
> I've seen a few of these in the eventlog, what in the world would cause

something like this,
> why can't it save the session id cookie ??
>
> Exception type: HttpException
> Exception message: Session state has created a session id, but cannot save

it because the response was already flushed by the
> application.
>
> System.Web.SessionState.SessionIDManager.SaveSessi onID(HttpContext

context, String id, Boolean& redirected, Boolean& cookieAdded)
> at System.Web.SessionState.SessionStateModule.CreateS essionId()
> at System.Web.SessionState.SessionStateModule.Delayed GetSessionId()
> at System.Web.SessionState.SessionStateModule.OnRelea seState(Object

source, EventArgs eventArgs)
> at System.Web.SessionState.SessionStateModule.OnEndRe quest(Object source,

EventArgs eventArgs)
> at

System.Web.HttpApplication.SyncEventExecutionStep. System.Web.HttpApplication
..IExecutionStep.Execute()
> at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&

completedSynchronously)
>
> PL.
>
>



 
Reply With Quote
 
 
 
 
PL
Guest
Posts: n/a
 
      11-10-2005

But this happens on a page where I don't use any session variables at all,
it seems it happen on the very first request and only intermittently.

Seems like a bug to me, if someone from MS could give any insight that would be nice.

PL.

"Patrice" <> skrev i meddelandet news:...
> Never had this one. My guess would be defining a session variable after
> having flushed the response buffer. Try perhaps a sequence such
> Response.Write, Response.Flush, Session("Test")="A".
>
> Let' us know...
>
> --
> Patrice
>
> "PL" <> a écrit dans le message de
> news:...
>>
>> I've seen a few of these in the eventlog, what in the world would cause

> something like this,
>> why can't it save the session id cookie ??
>>
>> Exception type: HttpException
>> Exception message: Session state has created a session id, but cannot save

> it because the response was already flushed by the
>> application.
>>
>> System.Web.SessionState.SessionIDManager.SaveSessi onID(HttpContext

> context, String id, Boolean& redirected, Boolean& cookieAdded)
>> at System.Web.SessionState.SessionStateModule.CreateS essionId()
>> at System.Web.SessionState.SessionStateModule.Delayed GetSessionId()
>> at System.Web.SessionState.SessionStateModule.OnRelea seState(Object

> source, EventArgs eventArgs)
>> at System.Web.SessionState.SessionStateModule.OnEndRe quest(Object source,

> EventArgs eventArgs)
>> at

> System.Web.HttpApplication.SyncEventExecutionStep. System.Web.HttpApplication
> .IExecutionStep.Execute()
>> at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&

> completedSynchronously)
>>
>> PL.
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session state has created a session id, but cannot save it because the response was already flushed by the application ganeshd@gmail.com ASP .Net 3 08-17-2007 04:33 AM
Unable to make the session state request to the session state server Maciek ASP .Net 0 09-15-2005 08:49 PM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
Unable to make the session state request to the session state server Not Liking Dot Net Today ASP .Net 0 04-21-2004 11:54 AM
unable to make the session state request to the session state server shamanthakamani ASP .Net 1 11-20-2003 04:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57