Languages
[Edit]
EN

Node.js / Express.js - remove session variable

0 points
Created by:
Dirask JS Member
3460

In this short article, we would like to show you how to remove session variable Express.js.

Practical example

app.post('/', (request, response) => {
    delete request.session.customVariable;
    // some code
}

To remove session variable we use the delete statement.

Node.js / Express.js - session management

Native Advertising
­čÜÇ
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

ÔŁĄ´ŞĆ­čĺ╗ ­čÖé

Join