CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 C# get session variables for UserID, GroupID, etc.

Print topic Send  topic

Author Message
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.
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.