Programming Microsoft ASP.NET 4 - Dino Esposito [52]
The The inherits="fully qualified type reference" automaticSaveEnabled="true|false" defaultProvider="provider name"> The enabled attribute indicates whether user profiles are enabled. The default value is true. The set of properties that is associated with each authenticated user is defined in the Table 3-13 lists the attributes allowed on the Profile property. Table 3-13. Attributes of the Profile Property Attribute Description allowAnonymous Allows storing values for anonymous users. It’s false by default. customProviderData Contains data for a custom profile provider. defaultValue Indicates the default value of the property. name Name of the property. provider Name of the provider to use to read and write the property. readOnly Specifies whether the property value is read-only. It’s false by default. serializeAs Indicates how to serialize the value of the property. Possible values are Xml, Binary, String, and ProviderSpecific. type The .NET Framework type of property. It is a string object by default. All properties are packaged in a dynamically created class that is exposed to user code through the Profile property on the HttpContext object. The Inherits attribute allows you to define the base class of this dynamically created profile class. The automaticSaveEnabled attribute specifies whether the user profile should be automatically saved at the end of the execution of an ASP.NET page. (The default is true.) Note that the profile is saved only if the HTTP module in charge of it detects that the profile has been modified. The The cookieName="name" cookiePath="/" cookieProtection="All|Encryption|Validation|None" cookieRequireSSL="true|false " cookieSlidingExpiration="true|false " cookieTimeout="number of minutes" createPersistentCookie="true|false" defaultProvider="provider name" domain="cookie domain"> enabled="true|false" maxCachedResults="maximum number of role names cached" After the HTTP module receives the role information from the currently selected provider, it usually creates a cookie to cache the information for future requests. All cookie-related attributes you see in the schema configure a different aspect of
The
The