Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Session variables
Message
De
30/09/2004 11:17:37
 
 
À
30/09/2004 08:25:48
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00947472
Message ID:
00947532
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform