Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mandarinets/mvc-framework/core/middlewares/sessionMiddleware.ts>SessionMiddleware

Mandarine.TS is a typescript, decorator-driven framework that allows you to create server-side applications. Mandarine.TS provides a range of built-in solutions such as Dependency Injection, Components, ORM and more. Under its umbrella, Mandarine.TS has 4 modules: Core, Data, Security and MVC, these modules will offer you the requirements to build a Mandarine-powered application.
Latest
class SessionMiddleware
import { SessionMiddleware } from "https://deno.land/x/mandarinets@v2.3.2/mvc-framework/core/middlewares/sessionMiddleware.ts";

This class handles the creation and manipulation of sessions This class works as a middleware and handles the injection of the session object to the request

Constructors

new
SessionMiddleware()

Properties

private
logger: Log

Methods

private
createSessionContext(sessionContainerConfig: Mandarine.Security.Sessions.SessionContainer, context: Mandarine.Types.RequestContext)
private
getSessionContainer(): Mandarine.Security.Sessions.SessionContainer
createSessionCookie(context: Mandarine.Types.RequestContext)
storeSession(context: Mandarine.Types.RequestContext)