Controller.Session Property

 

Gets the HttpSessionStateBase object for the current HTTP request.

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

Syntax

public HttpSessionStateBase Session { get; }
public:
property HttpSessionStateBase^ Session {
    HttpSessionStateBase^ get();
}
member Session : HttpSessionStateBase with get
Public ReadOnly Property Session As HttpSessionStateBase

Property Value

Type: System.Web.HttpSessionStateBase

The HTTP session-state object for the current HTTP request.

See Also

Controller Class
System.Web.Mvc Namespace

Return to top