import {sessionInMemory} from 'u-http-server'; // or import sessionInMemory from 'u-http-server/middlewares/sessions.js';
based on ctx.cookies['SID'] fetch session or create a new one renew Set-Cookie header in response place session in ctx.session
Generated using TypeDoc
import {sessionInMemory} from 'u-http-server'; // or import sessionInMemory from 'u-http-server/middlewares/sessions.js';
based on ctx.cookies['SID'] fetch session or create a new one renew Set-Cookie header in response place session in ctx.session