Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
1.3 ver Web Security
Message
De
31/07/2007 13:13:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01244902
Message ID:
01244916
Vues:
15
Stephen,


>I have been asked to activate a former systems security features. I got the data setup and now want to get the KISS method of providing the features.

I may not understand as you mention a "former systems security feature" exactly what you mean by this.

>
>I have read the docs and find them "light" as in beer.

Did you find the section on "Enabling User Security in a Web Forms Application" under "Application Security" in the document? I stepped through this and it worked right out of the box for me.

>
>Should I create a session object to carry the ID/Creds of the user who logged in?

>
>How do I set a webpage to allow anyone or only allow an admin ie. page will not load because security is not set right?

You can set the page to require security with this code directly from the docs added to any page that requires login. This assumes of course you are using forms authentication.
protected override void OnInit(EventArgs e)
{
   this.RequiresSecurity = true;
   base.OnInit(e);
}
>
>How do I capture that this page is a high level and your not, and let the user know that they are out of luck?
>


Tim
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform