AndyGB4
Posts: 122
|
Posted: 02/26/2013, 7:11 PM |
|
Hi, I can't quite figure out how to retrieve the values saved in Session for the logged in user.
I have done it in ASP, and also in PHP, but I can't figure it out in C#.
I would like to know the ID and the GroupID of the user that is logged in.
Can anyone give me a hand?
Thanks.
|
|
|
DataDoIT
|
Posted: 02/26/2013, 10:02 PM |
|
Retrieve a session variable:
System.Web.HttpContext.Current.Session["variable"]
|
|
|
AndyGB4
Posts: 122
|
Posted: 02/27/2013, 11:32 AM |
|
Thanks DataDoIT.
Basically, i want a user to log in,
and then I want him to be redirected to the next page based on what User (Security) Group they are in.
I know in ASP, CCS creates Sessions called UserID, UserLogin and GroupID. Does it do that for C# as well?
I don't know where to put most of the code, I just get tons of compiler errors with whatever I try...
Has anyone done this, or has a better understanding of how I can go about it?
It's my first project in C#, so I'm definitely out of my comfort zone..
Thanks again.
|
|
|
|
|
|
|
|