UNPKG

@dwp/govuk-casa

Version:

A framework for building GOVUK Collect-And-Submit-Applications

15 lines (14 loc) 557 B
/** * A convenience for ending the current session, but retaining some data in it, * like the current language. It persists an empty session before regenerating a * new ID. * * Note: this will not remove the session from server-side storage, which will * instead be left up to the storage mechanism to clean up. * * @memberof module:@dwp/govuk-casa * @param {import("express").Request} req HTTP request * @param {Function} next Chain * @returns {void} */ export default function endSession(req: import("express").Request, next: Function): void;