CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> .NET

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

Print topic Send  topic

Author Message

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?

View profile  Send private message
Posted: 02/26/2013, 10:02 PM

Retrieve a session variable:

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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

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