Επεξεργασία

Κοινή χρήση μέσω


SessionStateSection.RegenerateExpiredSessionId Property

Definition

Gets or sets a value indicating whether the session Id will be re-issued when an expired session ID is specified by the client.

public:
 property bool RegenerateExpiredSessionId { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("regenerateExpiredSessionId", DefaultValue=true)]
public bool RegenerateExpiredSessionId { get; set; }
[<System.Configuration.ConfigurationProperty("regenerateExpiredSessionId", DefaultValue=true)>]
member this.RegenerateExpiredSessionId : bool with get, set
Public Property RegenerateExpiredSessionId As Boolean

Property Value

true if the session ID must be regenerated; otherwise, false. The default value is true.

Attributes

Examples

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

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

Remarks

By default, only cookieless URLs are reissued when RegenerateExpiredSessionId is enabled.

Applies to