Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session variables
Message
From
30/09/2004 11:17:37
 
 
To
30/09/2004 08:25:48
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00947472
Message ID:
00947532
Views:
15
Randy,

I'm not an ASP.NET expert, I've barely used it, but your problem might have something to do with settings in your Web.config ... the Web.config on your company server may be different (or non-existent?). From the help:
<sessionState mode="Off|InProc|StateServer|SQLServer"
              cookieless="true|false"
              timeout="number of minutes"
              stateConnectionString="tcpip=server:port"
              sqlConnectionString="sql connection string"
              stateNetworkTimeout="number of seconds"/>
BTW, I don't think it matters whether or not you have cookies turned on. If you have "cookieless=true", then I'm pretty sure you can run on a machine that does not have cookies.

~~Bonnie



>I have a simple asp.net app. It has two web pages. On page one i set a session variable - Session("Test") = "1"
>
>On page 2, I set label.text = Session("Test")
>
>This works fine on my local machine where I developed it; however, when I set it up on my companies server, it does not.
>
>In IIS I went to the Home Directory tab. Clicked on Configuration, went to the Options tab, and the box is checked for maintaining sessions.
>
>Can someone tell me what I am missing. There has to be a setting somewhere or something that is not right.
>
>Thanks for the help.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform