Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madeorsk/session
Easy session handling in PHP.
https://github.com/madeorsk/session
php session session-management
Last synced: 16 days ago
JSON representation
Easy session handling in PHP.
- Host: GitHub
- URL: https://github.com/madeorsk/session
- Owner: Madeorsk
- License: mit
- Created: 2020-05-26T09:43:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T10:05:42.000Z (over 4 years ago)
- Last Synced: 2024-12-02T18:02:43.240Z (about 1 month ago)
- Topics: php, session, session-management
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Session
Easy Session handling in PHP.
## Quick start
```php
use Session\Session;
// Initialize session.
$session = new Session();$session->write("name", "this is a text value"); // Save "this is a text value" in the session.
// ...
echo $session->read("name"); // Will echo "this is a text value".
echo $session->read("undefined_name", "my default value"); // Will echo "my default value".// ...
$value = $session->delete("name"); // Delete the value of the session variable "name" in the session and return it.
```
## Full documentation
Full API documentation is currently a work in progress. You can still see the full documentation of the different methods in the source code.