Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

Session variables are lost

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Guns - 16 Jul 2005 09:27 GMT
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
Daniel Walzenbach - 16 Jul 2005 11:26 GMT
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

> 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...
[quoted text clipped - 10 lines]
> Guns
> www.goondemand.com
Alexander Widera - 16 Jul 2005 12:06 GMT
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.

> 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...
[quoted text clipped - 10 lines]
> Guns
> www.goondemand.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.