Manages anonymous identifiers for the ASP.NET application.
Assembly: System.Web (in System.Web.dll)
Gets a value indicating whether anonymous identification is enabled for the ASP.NET application.
Clears the anonymous cookie or identifier associated with a session.
Releases all resources, other than memory, used by the.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
The System.Web.Profile.class creates and manages anonymous identifiers for an ASP.NET application. Anonymous identifiers are used by features that support anonymous identification such as the ASP.NET
The Creating event is accessed by specifying a subroutine named AnonymousIdentification_Creating in the Global.asax file for your ASP.NET application.
The Enabled by setting the enabled attribute of the configuration element to true.is only used when anonymous identification is
Anonymous identification is independent of any type of ASP.NET authentication.
The following code example shows a Web.config file for an application that enables anonymous identification.
<configuration> <system.web> <authentication mode="Forms" > <forms loginUrl="login.aspx" name=".ASPXFORMSAUTH" /> </authentication> <anonymousIdentification enabled="true" /> <profile defaultProvider="AspNetSqlProvider"> <properties> <add name="ZipCode" allowAnonymous="true" /> <add name="CityAndState" allowAnonymous="true" /> <add name="StockSymbols" type="System.Collections.ArrayList" allowAnonymous="true" /> </properties> </profile> </system.web> </configuration>
Available since 2.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.