The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
public myvar as string = HttpContext.Current.User.Identity.Name in Module issue
Posted: 18 May 07 8:54 AM
|
fiogf49gjkf0d I have a vb.net 2003 web project with a module. The module has several public functions and subs and public myvar as string = HttpContext.Current.User.Identity.Name. Variable myvar is accessed in multiple web pages. The problem is when the website is started myvar = the first user to access the application. Then every other user after that initial load has myvar = that first user. If I remark that line and add dim myvar as string = HttpContext.Current.User.Identity.Name in every sub that uses myvar then it grabs the current user as intended. What am I doing (or understanding) wrong here? |
|
|
| |
| |
|