delboy1978uk/session

Secure Session Manager for PHP™

v1.1.3 2019-11-13 17:50 UTC

README

A secure-ish session manager for PHP

Installation

Use composer:

composer require delboy1978uk/session

Usage

use Del\SessionManager;

// Starting the session - also takes a name argument
SessionManager::sessionStart();

// Setting a variable
SessionManager::set('name', 'DelBoy');

// Getting a variable
$name = SessionManger::get('name');

// Unsetting a variable
SessionManager::destroy('name');

// Ending the session
SessionManager::destroySession();