PC Review


Reply
Thread Tools Rate Thread

different sessions and globals

 
 
=?Utf-8?B?YmJkb2J1ZGR5?=
Guest
Posts: n/a
 
      15th Aug 2005
Hi,

I got an ASP.net application that has some global variables that tells the
program what type of user they are but when multiple people are logged in
everyone gets set to the same type of user. How can I fix this?
 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      15th Aug 2005
It sounds like you should be using the Session object instead of global
variables.
Session applies only to the current user.

Session("UserType")="Admin"

Here's more info:
http://msdn.microsoft.com/library/de...ssiontopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"bbdobuddy" <(E-Mail Removed)> wrote in message
news:87314A6C-B34A-4CE3-ADE0-(E-Mail Removed)...
> Hi,
>
> I got an ASP.net application that has some global variables that tells the
> program what type of user they are but when multiple people are logged in
> everyone gets set to the same type of user. How can I fix this?



 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      15th Aug 2005
Disallow anonymous access to the web. Anonymous access means that everyone
logs in using the same Anonymous Internet user account.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Expect the unaccepted.

"bbdobuddy" <(E-Mail Removed)> wrote in message
news:87314A6C-B34A-4CE3-ADE0-(E-Mail Removed)...
> Hi,
>
> I got an ASP.net application that has some global variables that tells the
> program what type of user they are but when multiple people are logged in
> everyone gets set to the same type of user. How can I fix this?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Life without globals (or singletons) Peter Duniho Microsoft C# .NET 4 31st Aug 2009 11:43 PM
globals? Smokey Grindle Microsoft VB .NET 56 29th Jan 2007 07:24 PM
Globals set to nothing fijimf Microsoft Excel Programming 1 27th Nov 2006 08:58 PM
where to place globals? Boris Twila Microsoft ASP .NET 2 9th Nov 2006 09:45 PM
globals objects Allen Hendrix Microsoft Access Form Coding 1 3rd Sep 2003 05:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:04 PM.