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

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform