Simply Store
Simply Store is a session handler with expires after custom delay , easy use
MemoryStore is not shared with browser
Client is recognized with user-agent from headers request , each user-agent is a new client.
npm install simply-store --save
yarn add simply-store
from app.js:
// 1 Hoursconst expires = 1e3 * 60 * 60 ; // expires default value 1 Hoursconst simplystore = expires ;
Express as middleware:
Usage with- npm install express --save
- yarn add express --save
from app.js:
const express = ;const app = ;const server = ; app ; app ; server ;
Standalone usage:
from app.js:
const server = ; server ;