Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SessionStateSection.Mode Property

Gets or sets a value specifying where to store the session state.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
public SessionStateMode Mode { get; set; }
/** @property */
public SessionStateMode get_Mode ()

/** @property */
public void set_Mode (SessionStateMode value)

public function get Mode () : SessionStateMode

public function set Mode (value : SessionStateMode)

Not applicable.

Property Value

One of the SessionStateMode values. The default value is InProc.

The SessionStateMode is not a required attribute and can be inherited from a higher level in the configuration hierarchy or from the default value. However, the configuration handler for this section will always write out the mode based on the current inherited value when writing this section.

The following code example demonstrates how to get the Mode property. Refer to the code example in the SessionStateSection class topic to learn how to access the SessionStateSection object.

// Display the current Mode property value.
Console.WriteLine("Mode: {0}",
  sessionStateSection.Mode);

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.