New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

expsession

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expsession

Expsession is an easy way to handle sessions in Node.js and Express. With one line of code, you can manage sessions for each user and store data for that session.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Expsession

Expsession is an easy way to handle sessions in Node.js and Express. With one line of code, you can manage sessions for each user and store data for that session.

Quick setup

After installing the package, just use this one line to get it going:

// ...
require('expsession')(app);
// ...

Documentation

Req.session.get(key)

Get the key from the session

Req.session.set(key, value)

Set a value on the session

Req.session.getAll()

Get the entire object of data for a session

Res.logout()

Log out of a session, regenerate a cookie, and clear all data

❗ Disclaimer: Expsession is not meant for use in production applications. It is just an easy way to add sessions to a project.

FAQs

Package last updated on 07 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts