joem / simple-session
Manage session information with a simple interface
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/joem/simple-session
README
I find array accessing in HTML ugly. This package was created through the pain of handling sessions in WordPress templates.
Usage
session_start(); require_once "vendor/autoload.php"; session_has('username'); // false session_set('username', 'joe'); session_has('username'); // true session_get('username'); // 'joe'
Alternatively, you can directly access the static class methods:
Coming soon
- Flash session messages