Tuesday, March 13, 2012

Session variables are lost

we have a session variable object that gets lost in the same event call.
I have windows XP Pro as my os with the latest service pack...
I have the .net 1.1 SP1 installed. Even tried installing 1.0 SP2 but that
does not work for me...

Here is what my machine.config looks like:

<sessionState mode="InProc" cookieless="true" timeout="20"/
Any help is appreciated...

Thanks
Guns
www.goondemand.comGuns,

Does the web.config file get changed? Probably because of a virus scanner?
Or do you prob. have another file in your bin directory which is changed
during execution or another configuration file or an access database?

If so you know why your application will restart and (because you save the
session InProc) looses your session.

Greetings

Daniel

"Guns" <gg@.ecokard.com> schrieb im Newsbeitrag
news:ub%23UABeiFHA.1412@.TK2MSFTNGP09.phx.gbl...
> we have a session variable object that gets lost in the same event call.
> I have windows XP Pro as my os with the latest service pack...
> I have the .net 1.1 SP1 installed. Even tried installing 1.0 SP2 but that
> does not work for me...
> Here is what my machine.config looks like:
> <sessionState mode="InProc" cookieless="true" timeout="20"/>
> Any help is appreciated...
> Thanks
> Guns
> www.goondemand.com
>
Try instead of "InProc" this:

<sessionState
mode="StateServer"
stateConnectionString="tcpip=127.0.0.1:42424"
stateNetworkTimeout="10"
sqlConnectionString="data source=127.0.0.1;Integrated Security=SSPI"
cookieless="false"
timeout="20"
/
And run the "ASP.NET State Server Service" in Services...

I had the same problem of ramdomly disappearing/reappearing
session-values... Not it works fine.

"Guns" <gg@.ecokard.com> schrieb im Newsbeitrag
news:ub%23UABeiFHA.1412@.TK2MSFTNGP09.phx.gbl...
> we have a session variable object that gets lost in the same event call.
> I have windows XP Pro as my os with the latest service pack...
> I have the .net 1.1 SP1 installed. Even tried installing 1.0 SP2 but that
> does not work for me...
> Here is what my machine.config looks like:
> <sessionState mode="InProc" cookieless="true" timeout="20"/>
> Any help is appreciated...
> Thanks
> Guns
> www.goondemand.com
>

0 comments:

Post a Comment