koolreport / stateless
Assist creating stateless application
1.0.0
2024-01-26 08:43 UTC
Requires
- php: >=7.1
- firebase/php-jwt: ^6.1.0
This package is auto-updated.
Last update: 2024-11-28 10:38:37 UTC
README
This package will contain everything to construct a stateless PHP application.
Sessions
The first of very first of making a stateless application is to make stateless session for PHP. There are few options:
- Use encrypted cookie: Encryped sessions with JWT and store inside cookie.
- Databases: Store the sessions into databases
JWTSession
<?php
$session = new koolreport\stateless\sessions\JWTSession(60*24,"secretKey");
$session->setSessionHandler();
//Your code is here