IHttpSessionState.IsNewSession Property

 

Gets a value indicating whether the session was created with the current request.

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

bool IsNewSession { get; }

Property Value

Type: System.Boolean

true if the session was created with the current request; otherwise, false.

The following code example implements the IsNewSession property of the IHttpSessionState interface.

public bool IsNewSession
{
  get { return pNewSession; }
}

.NET Framework
Available since 2.0
Return to top
Show: