Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to define global variables?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00848129
Message ID:
00848532
Vues:
21
Michel,

One thing to keep in mind is that static or shared variables are across all sessions in ASP.NET. They are not bound to a session so cUsername is the same for ALL sessions.

>Ok, I did find my way in.
>
>Basically, the only syntax I needed was:
>
>
>Public Shared cUsername As String = "username"
>
>
>Also, I like this approach very much. It allows me to instantiate the Web Service at that level and issue the cookie container at only one place.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform