Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatic role determination
Message
From
05/05/2006 14:44:36
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Programatic role determination
Miscellaneous
Thread ID:
01119726
Message ID:
01119726
Views:
50
Hello Gang,
I have succesfully implimented the ASP.NET 2.0 login controls. I have created the SQL Server 2005 database and I want to control page capabilities based on roles programatically. How do I find out who is logged in and what role if any they have?
Dim ticket As FormsAuthenticationTicket = _
   FormsAuthentication.Decrypt(Request.Cookies(FormsAuthentication.FormsCookieName).Value)
will give me a username even after logging out. :(
I dont want to control the access via folders and a bunch of similar pages.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Next
Reply
Map
View

Click here to load this message in the networking platform