psm

php-session-middleware

Express/Connect Middleware to load PHP session data

Showing:

Popularity

Downloads/wk

5

GitHub Stars

2

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

2

Size (min+gzip)

20.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

PHP Session Middleware

Build Status Dependency Status

This is simple Express/Connect middleware that loads PHP sessions in an express request.

Installation

$ npm install php-session-middleware --save

Usage

app.use(require('php-session-middleware')({
    handler: 'file',
    opts: {
        path: '/tmp/'
    }
}));
app.get('/restricted', function(req, res) {
    if (req.session) {
        res.render('hello', { 
            name: req.session.name
        });
    }
});

Roadmap

  • Optionally parse php.ini for configuration
  • Allow for other session handlers, such as memcached
  • More tests

Change Log

Initial release

  • This is the initial release, with minimal testing. Use at your own risk.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100