Session variables are lost

G

Guns

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
 
D

Daniel Walzenbach

Guns,



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
 
A

Alexander Widera

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top