SessionMiddlewareExtensions Class

Definition

Extension methods for adding the SessionMiddleware to an application.

public ref class SessionMiddlewareExtensions abstract sealed
public static class SessionMiddlewareExtensions
type SessionMiddlewareExtensions = class
Public Module SessionMiddlewareExtensions
Inheritance
SessionMiddlewareExtensions

Methods

UseSession(IApplicationBuilder)

Adds the SessionMiddleware to automatically enable session state for the application.

UseSession(IApplicationBuilder, SessionOptions)

Adds the SessionMiddleware to automatically enable session state for the application.

Applies to