Languages
[Edit]
EN

Express.js - remove session variable

0 points
Created by:
Iona
415

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.

Alternative titles

  1. Express.js - delete session variable
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

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