php-jwt-session

JwtSession is a PHP session replacement. Instead of use FileSystem, just use JWT TOKEN. The implementation follow the SessionHandlerInterface.

Downloads
69.5K
Stars
49

Bot releases are hidden (Show)

php-jwt-session - Release 4.9.0 Latest Release

Published by byjg about 2 months ago

Important Notice

  • Dropped support for PHP 7.4 and lower.

What's Changed

New Contributors

Full Changelog: https://github.com/byjg/php-jwt-session/compare/2.0.0...4.9.0

php-jwt-session - Release 2.0.0

Published by byjg almost 6 years ago

Important changes that break compatibility with previous versions:

  • Upgrade Jwt-Wrapper component (https://github.com/byjg/jwt-wrapper/pull/2)
  • Use SessionConfig class instead a lot or arguments
  • Removing PHPSESSID based on issue #10
  • Moving method replaceSessionHandler() to SessionConfig

Examples:

before

<?php
$handler = new \ByJG\Session\JwtSession(
    'your.domain.com', 
    'your super secret key', 
    null, 
    null, 
    '.mydomain.com'
);
$handler->replaceSessionHandler(true);

now

<?php
$sessionConfig = (new \ByJG\Session\SessionConfig('your.domain.com'))
     ->withSecret('your super secret key')
     ->withCookie('.mydomain.com', '/')
     ->replaceSessionHandler();
 
 $handler = new \ByJG\Session\JwtSession($sessionConfig);
php-jwt-session - Release 1.0.3

Published by byjg almost 6 years ago

Update Issue #6 - Cookie Set and Delete Error
Update Issue #7 - Include Path as Parameters
Update Issue #8 - Set HttpOnly (Security patch)

php-jwt-session - Release 1.0.2

Published by byjg about 6 years ago

Fixed convert object issues

php-jwt-session - Release 1.0.1

Published by byjg over 6 years ago

Allow to set cookie domain

php-jwt-session - Initial Release

Published by byjg over 7 years ago