delboy1978uk / session
Secure Session Manager for PHP™
Installs: 3 758
Dependents: 7
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
Requires (Dev)
- codeception/codeception: ^4.1
- codeception/module-asserts: ^1.0.0
- roave/security-advisories: dev-latest
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'); // 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();