bemang/session-system

Librairie pour grer les sessions php

1.0.1 2020-11-05 13:01 UTC

This package is auto-updated.

Last update: 2024-05-05 20:40:27 UTC


README

Librairie pour gérer les session en php

Installation

composer require bemang/session-system

Usage

require_once('vendor/autoload.php');

$session = new bemang\Session\PHPSession();
$session->set('hello', 'hello world');
$session->get('hello'); //Return hello world

//or array session
$array = ["hello", "hello world !"];
$session = new bemang\Session\ArraySession($array); //Array is passed as reference
$session->set('hello', 'hello world');
$session->get('hello'); //Return hello world