Avatar of Murray Brown
Murray Brown
Flag for United Kingdom of Great Britain and Northern Ireland asked on

ASP.net Global variable shared

Hi

In my ASP.net project I have been assigning usernames to a variable in Module1 when users log in.
The variable is declared as Public oUsername at the top of the module.
When another user logs in it changes that variable to their username.
I thought that Module1 wasn't shared like this. Why is it?
Is there a better way place to store the variable?
ASP.NET

Avatar of undefined
Last Comment
Murray Brown

8/22/2022 - Mon
Dorababu M

What was your requirement? What do you mean by module?

The variable is declared as Public oUsername at the top of the module.

Means on the page?
ASKER CERTIFIED SOLUTION
Chinmay Patel

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Murray Brown

ASKER
Thanks very much
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes