Re: Need help configuring security and role management settings for we



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

.



Relevant Pages

  • Re: Theme changes/reverts every reboot
    ... I went to Run>msconfig.exe and found that there was a theme file in startup. ... Worked like a charm. ... find if there's a registry tweak I can do to solve the problem, because I really don't have any other gripes as far as the configuration. ... Problem is, every time I try to change the wallpaper or other settings in the theme, after I reboot, the default Ferrari theme loads up again. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Washed Out Color
    ... harware acceleration on the video settings and that worked like a ... charm. ... I've gone through all the settings ...
    (microsoft.public.multimedia.windows.mediaplayer)
  • Re: Office 03 icons not showing
    ... > 1) Did you change your color dept settings as well? ... Worked like a charm when ... > -Backup and Restore ... >>manually....I did an uninstall through add and remove programs but there ...
    (microsoft.public.office.setup)
  • Re: Why is restarted needed for setting to take effect
    ... in a group and then change the settings in the policy that the group is ... then a restart is need on the PC's before the settings take effect, ... group membership thing as Windows only "refreshes" group membership if ...
    (microsoft.public.windows.group_policy)
  • Re: Membership Configuration Issues
    ... Did you implement the roleManager? ... I can also make note that the web.config settings are very delicate and some ... The membership provider ... Membership starter kit with a base implemenation of the web.config. ...
    (microsoft.public.dotnet.framework.aspnet)