A reasonably secure session manager for PHP
Use composer:
composer require delboy1978uk/session
use Del\SessionManager;
// Starting the session - also takes a name argument
SessionManager::sessionStart();
// Setting a variable
SessionManager::set('name', 'DelBoy');
// Check a session variable exists
$hasName = SessionManger::has('name');
// Getting a variable
$name = SessionManger::get('name');
// Unsetting a variable
SessionManager::destroy('name');
// Ending the session
SessionManager::destroySession();