2017 © Pedro Peláez
 

library session-manager

Manage your session with different methods.

image

hichxm/session-manager

Manage your session with different methods.

  • Saturday, July 21, 2018
  • by Hichxm
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Session Manager

Session Manager will allow you to manage the sessions in the enclosure of your application with different methods., (*1)

Exemple:

use Hichxm\SessionManager\Session\PHP_SESSION_MANAGER;
use Hichxm\SessionManager\SessionManager;

$session_method = new PHP_SESSION_MANAGER($options = [
    "name" => "MySuperSessionName", //Cookie name
    "lifetime" => 10, //In second, not millisecond.
    "secure" => true //The cookie sent just if is SSL.
]);
$session = new SessionManager($session_method);

//Start session.
$session->start();

//Set data or different method to set data.
$session->set($key = "id", $value = "1545348");
$session['id'] = 1545348;

//Get data or different method to get data.
$session->get($key = "id");
$session['id'];

//Unset data.
$session->unset($key = "id");
unset($session['id']);

//Stop session.
$session->stop();

Full doc

Documentation., (*2)

License (MIT)

The MIT License (MIT)

Copyright (c) 2018 

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

The Versions

21/07 2018

dev-master

9999999-dev

Manage your session with different methods.

  Sources   Download

MIT

The Development Requires

by Avatar Hichxm

21/07 2018

dev-stupid-test

dev-stupid-test

Manage your session with different methods.

  Sources   Download

MIT

The Development Requires

by Avatar Hichxm

28/02 2018

1.2

1.2.0.0

Manage your session with different methods.

  Sources   Download

MIT

The Development Requires

by Avatar Hichxm

25/02 2018

1.1

1.1.0.0

Manage your session with different methods.

  Sources   Download

MIT

The Development Requires

by Avatar Hichxm

23/02 2018

1.0

1.0.0.0

Manage your session with different methods.

  Sources   Download

MIT

The Development Requires

by Avatar Hichxm