middlewares/aura-session

Name: aura-session

Owner: Middlewares

Description: PSR-15 middleware to manage sessions using Aura.Session

Created: 2016-10-08 10:21:14.0

Updated: 2018-01-27 14:14:09.0

Pushed: 2018-01-27 14:15:31.0

Homepage: null

Size: 21

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

middlewares/aura-session

Latest Version on Packagist Software License Build Status Quality Score Total Downloads SensioLabs Insight

Middleware to manage sessions using Aura.Session.

Requirements
Installation

This package is installable and autoloadable via Composer as middlewares/aura-session.

oser require middlewares/aura-session
Example
patcher = new Dispatcher([
new Middlewares\AuraSession(),

function ($request) {
    //get the session object
    $session = $request->getAttribute('session');
}


ponse = $dispatcher->dispatch(new ServerRequest());
Options
__construct(Aura\Session\SessionFactory $factory = null)

To use a custom session factory. If it's not passed, it will be created automatically.

name(string $name)

The session name. If it's not defined, the default PHPSESSID will be used.

attribute(string $attribute)

The attribute name used to store the session in the server request. By default is session.


Please see CHANGELOG for more information about recent changes and CONTRIBUTING for contributing details.

The MIT License (MIT). Please see LICENSE for more information.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.