Re: Need help configuring security and role management settings for we
- From: Philipp Lenz <Barbelith@xxxxxxxxxxx>
- Date: Fri, 02 Dec 2005 15:04:59 +0100
On Thu, 1 Dec 2005 20:04:02 -0800, Oldman
<Oldman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>You need to configure your membership and role providers by adding settings
>like the following to your web.config file:
>
><membership defaultProvider="MySqlProvider" userIsOnlineTimeWindow="20"
> hashAlgorithmType="MD5">
> <providers>
> <add connectionStringName="MyConnString"
>enablePasswordRetrieval="false"
> enablePasswordReset="true" requiresQuestionAndAnswer="true"
> passwordFormat="Hashed" applicationName="MyApp"
>name="MySqlProvider"
> type="System.Web.Security.SqlMembershipProvider" />
> </providers>
> </membership>
> <roleManager defaultProvider="MySqlProvider"
> enabled="true"
> cacheRolesInCookie="true"
> cookieName=".ASPROLES"
> cookieTimeout="30"
> cookiePath="/"
> cookieRequireSSL="false"
> cookieSlidingExpiration="true"
> cookieProtection="All" >
> <providers>
> <add
> name="MySqlProvider"
> type="System.Web.Security.SqlRoleProvider"
> connectionStringName="MyConnStr"
> applicationName="MyApp" />
> </providers>
> </roleManager>
>
>
Worked like a charm, thank you very much!
I still don't know why the settings webinterface won't do this for me,
but I'm glad it's running now!
Philipp Lenz
.
- Prev by Date: Re: Security Exception when run asp.net under sharepoint site
- Next by Date: Re: Security Exception when run asp.net under sharepoint site
- Previous by thread: Security Exception when run asp.net under sharepoint site
- Next by thread: Re: New Windows Authentication Issues
- Index(es):
Relevant Pages
|