delboy1978uk/session

Secure Session Manager for PHP™

v1.3.1 2020-04-29 01:00 UTC

This package is auto-updated.

Last update: 2020-06-29 01:25:48 UTC


README

A reasonably secure 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();