Alternative-Implementation of a PHP session
The project was created out of a need for a PHP session mechanism, without the use of the built-in mechanism (because another part of the code used the built-in mechanism).
For this purpose, I have written a relatively simple library for the implementation of the mechanism.
Happy coding :)
It is mandatory to check that the session.json file is stored in a place that is not accessible to anyone !!!
require_once('lib/SessionClass.php');
SESSION::init();
if(!isset(SESSION::$s['counter'])) SESSION::$s['counter'] = 0;
SESSION::$s['counter']++;
var_dump(SESSION::get());
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.