Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to define global variables?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00848129
Message ID:
00848532
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform