SessionStateSection::CookieName Property

 

Gets or sets the cookie name.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public:
[ConfigurationPropertyAttribute("cookieName", DefaultValue = "ASP.NET_SessionId")]
property String^ CookieName {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The name of the HTTP cookie to use for session identification.

The default value is "ASP.NET_SessionId".

The following code example demonstrates how to get the CookieName property. Refer to the code example in the SessionStateSection class topic to learn how to get the section.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: