Re: asp password
From: Bill Carpenter (bill.carpenter@freeborders.com)
Date: 07/16/02
- Next message: Willy Denoyette [MVP]: "Re: Setting ACL on %windir%\assembly?"
- Previous message: JohnW: "WinApp "Access Denied" to web service"
- In reply to: wobble: "asp password"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Bill Carpenter" <bill.carpenter@freeborders.com> Date: Tue, 16 Jul 2002 10:06:58 -0400
If you use Forms authentication it will automatically redirect users to a
login page you specify if they are not logged in. This is set up in the
Web.Config You can put the users and their passwords directly in the
Web.Config or you could put them in an xml file or a database.
The relevant sections of Web.config follows
<authentication mode="Forms">
<forms name="logon" path="/" loginUrl="logon.aspx" protection="All"
timeout="10">
<credentials passwordFormat="Clear">
<user name="bill" password="password"/>
<user name="fred" password="whatever"/>
</credentials>
</forms>
</authentication>
<!-- AUTHORIZATION
This section sets the authorization policies of the application. You can
allow or deny access
to application resources by useror role. Wildcards: "*" mean everyone, "?"
means anonymous
(unauthenticated) users.
-->
<!--this will deny all users access unless they are authenticated-->
<authorization>
<!--<allow users="*" />-->
<deny users="?" />
</authorization>
You will need to put code in the logon.aspx section to check users etc.. I
think there is a good bit of stuff in the help files on this try looking up
forms authentication.
Hope this helps.
Bill Carpenter
"wobble" <warren@*nospam*romcard.com> wrote in message
news:eNj2uyBLCHA.1988@tkmsftngp08...
> Not sure where to post this question, if this isnt the correct newsgroup
can
> you please tell me where i should post it please!
>
> i am trying to use asp for a simple name/password login to my site and was
> wondering if anyone could give me any pointers....
>
> thanks in advance
>
> warren
>
>
>
- Next message: Willy Denoyette [MVP]: "Re: Setting ACL on %windir%\assembly?"
- Previous message: JohnW: "WinApp "Access Denied" to web service"
- In reply to: wobble: "asp password"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|