The XmlProvider library provides an ability to leverage the ASP.NET 2.0 membership, roles, profile, and personalization model without having to persist information to a database. Instead, user information is persisted as XML files in the directory specified by the dataStorePath parameter of the provider.
Most of the provider functionality has been implemented. If you find any omissions or have any suggestions, please visit the project page at http://www.codeplex.com/XmlProviderLibrary.
Thanks,
Matt Dinovo
January 24, 2007
<system.web>
<anonymousIdentification enabled="true"/>
<webParts>
<personalization defaultProvider="XmlProvider">
<providers>
<clear/>
<add name="XmlProvider" type="XmlProviders.XmlPersonalizationProvider" dataStorePath="App_Data" applicationName="MyApp"/>
</providers>
</personalization>
</webParts>
<profile enabled="true" defaultProvider="XmlProvider">
<providers>
<clear/>
<add name="XmlProvider" type="XmlProviders.XmlProfileProvider" dataStorePath="App_Data" applicationName="MyApp"/>
</providers>
<properties>
<add name="CurrentCar" allowAnonymous="true"/>
<add name="Age" type="System.Int32" allowAnonymous="true"/>
</properties>
</profile>
<membership defaultProvider="XmlProvider" userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add name="XmlProvider"
type="XmlProviders.XmlMembershipProvider"
dataStorePath="App_Data"
applicationName="MyApp"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="3"
passwordAttemptWindow="5"/>
</providers>
</membership>
<roleManager enabled="true" cacheRolesInCookie="true" cookieName=".ASPROLES"
defaultProvider="XmlProvider">
<providers>
<clear />
<add dataStorePath="App_Data" applicationName="MyApp" name="XmlProvider"
type="XmlProviders.XmlRoleProvider" />
</providers>
</roleManager>
</system.web>