2017 © Pedro Peláez
 

library session

Uniform interface for storing sessions in a variety of mediums, based on illuminate/session

image

userfrosting/session

Uniform interface for storing sessions in a variety of mediums, based on illuminate/session

  • Sunday, June 18, 2017
  • by alexweissman
  • Repository
  • 5 Watchers
  • 1 Stars
  • 9,879 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 12 % Grown

The README.md

Sessions module for UserFrosting 4

Latest Version Software License Join the chat at https://chat.userfrosting.com/channel/support Donate, (*1)

Branch Build Coverage Style
master [![][session-master-build]][session-travis] ![][session-style-master]
develop [![][session-develop-build]][session-travis]  

Example usage:

use Illuminate\Filesystem\Filesystem;
use Illuminate\Session\FileSessionHandler;
use UserFrosting\Session\Session;

// Use custom filesystem sessions
$fs = new FileSystem;
$handler = new FileSessionHandler($fs, \UserFrosting\APP_DIR . "/sessions");

// Creates a new wrapper for $_SESSION
$session = new Session($handler, $config['session']);

// Starts the session
$session->start();

// Set some values
$session['contacts.housekeeper.name']; = 'Alex "the man" Weissman';

// They're stored in array format...
print_r($session->all());

// Output is:
/*
[
    'contacts' => [
        'housekeeper' => [
            'name' => 'Alex "the man" Weissman'
        ]
    ]
];
*/

// Destroy the session, both in memory and on the persistence layer, and tell the browser to remove the cookie
$session->destroy();

Style Guide

Testing

The Versions

18/06 2017

dev-master

9999999-dev https://github.com/userfrosting/session

Uniform interface for storing sessions in a variety of mediums, based on illuminate/session

  Sources   Download

MIT

The Requires

 

session userfrosting

18/06 2017

dev-develop

dev-develop https://github.com/userfrosting/session

Uniform interface for storing sessions in a variety of mediums, based on illuminate/session

  Sources   Download

MIT

The Requires

 

session userfrosting

18/06 2017

4.1.0

4.1.0.0 https://github.com/userfrosting/session

Uniform interface for storing sessions in a variety of mediums, based on illuminate/session

  Sources   Download

MIT

The Requires

 

session userfrosting

31/05 2017

4.0.1

4.0.1.0 https://github.com/userfrosting/session

Uniform interface for storing sessions in a variety of mediums, based on illuminate/session

  Sources   Download

MIT

The Requires

 

session userfrosting

18/02 2017

4.0.0

4.0.0.0 https://github.com/userfrosting/session

Uniform interface for storing sessions in a variety of mediums, based on illuminate/session

  Sources   Download

MIT

The Requires

 

session userfrosting

09/02 2017

dev-dev

dev-dev https://github.com/userfrosting/session

Uniform interface for storing sessions in a variety of mediums, based on illuminate/session

  Sources   Download

MIT

The Requires

 

session userfrosting

24/07 2016

1.0

1.0.0.0 https://github.com/userfrosting/session

Uniform interface for storing sessions in a variety of mediums, based on illuminate/session

  Sources   Download

MIT

The Requires

 

session userfrosting