Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatic role determination
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01119726
Message ID:
01121288
Vues:
18
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

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform