Skip to content

Release 2.0.0

Compare
Choose a tag to compare
@byjg byjg released this 09 Jan 02:42
· 12 commits to master since this release
6f31d19

Important changes that break compatibility with previous versions:

  • Upgrade Jwt-Wrapper component (byjg/php-jwt-wrapper#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);