Release 2.0.0
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()
toSessionConfig
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);