Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatic role determination
Message
From
12/05/2006 09:29:48
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01119726
Message ID:
01121288
Views:
16
This message has been marked as the solution to the initial question of the thread.
>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.

I got the answer at http://forums.asp.net/thread/1277840.aspx
~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

Previous
Reply
Map
View

Click here to load this message in the networking platform