{"repo":"byjg/php-jwt-session","free":true,"listed":false,"github":"https://github.com/byjg/php-jwt-session","clone":"git clone https://github.com/byjg/php-jwt-session.git","description":"JwtSession is a PHP session replacement. Instead of use FileSystem, just use JWT TOKEN. The implementation follow the SessionHandlerInterface.","language":"PHP","stars":50,"topics":["jwt-token","php7","php","stateless","stateless-components","php-sessions","jwt","handler","jwtsession"],"license":null,"category":"auth-billing-email","readme_excerpt":"--- sidebar key: jwt-session tags: [php, cryptography, authentication] --- JWT Session Handler A PHP session replacement that stores session data in JWT tokens instead of the filesystem. This implementation follows the SessionHandlerInterface standard, enabling stateless sessions without the need for dedicated session servers like Redis or Memcached. Perfect for distributed applications and microservices architectures. Documentation - Getting Started - Installation, basic usage, and motivation - Configuration - Session timeout, contexts, cookies, and all configuration options - RSA Keys - Using RSA private/public keys for enhanced security - How It Works - Architecture and internal implementation details - Security - Security considerations and best practices - API Reference - Complete API documentation for all classes and methods How to use: Before the session start() use the command: Now, all your $ SESSION variable will be saved directly to a JWT Token!! Note: Make sure that you are providing a base64url encoded key. For more details on motivation, security considerations, and best practices, see the Documentation section above. Install Configuration Examples Setting the validity of JWT Token Setting different Session Contexts For complete configuration options including cookie domains and automatic session handler replacement, see Configuration. Using RSA Private/Public Keys For more details about RSA keys and how to generate them, see RSA Keys and https://github.com/byjg","default_branch":null,"files":null,"tree":[],"storefront":"/r/byjg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/byjg/php-jwt-session/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}