Session Middleware Extension for Twee.io Framework - MVC Framework for Node.js and io.js based on Express.js.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

twee-session-extension

Twee.io Logo

Gitter npm npm

Session Extension for Twee.io Framework - MVC Framework for Node.js and io.js based on Express.js.

Session depends of twee-cookies-extension and twee-cache-extension/redis. No need to store sessions in another places. First of all because if this is disk - it is not useful and you don't test your application in real environment. The second reason is that memory does not save your sessions after server restarts. And the last reason is that redis does not have these problems and it is used in production. So you work in the same environment as it is in production.

To install it use this command:

npm install twee-session-extension --save

Editing package.json of your application:

"dependencies": {
    "twee-session-extension": "*"
}

Turning extension ON in application/configs/twee.js:

module.exports = {
    "extensions": {
        "Session": {
            "module": "twee-session-extension"
        }
    }
};