odan / session

A middleware oriented session handler for PHP and Slim 4+
https://odan.github.io/session/
MIT License
58 stars 11 forks source link

SessionInterface.php #33

Closed mat-k-witts closed 1 year ago

mat-k-witts commented 1 year ago

AFAICT this interface does not implement:

  1. start()
  2. destroy()
  3. regenerateId()
odan commented 1 year ago

There are different interfaces: SessionInterface and SessionManagerInterface.

Can you add more details please?

mat-k-witts commented 1 year ago

Slim4 Ebook:

use Odan\Session\SessionInterface;

[...]

public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response
): ResponseInterface {

[...]

if ($user) {
// Login successfully
// Clears all session data and regenerate session ID
$this->session->destroy();
$this->session->start();
$this->session->regenerateId();

[...]
odan commented 1 year ago

This eBook article has already been updated to the latest version of this Session package. You can download the latest eBook version (or read it online) via the link in your order confirmation. If you have any further question, please send me an email.

Please note: There is also a public documentation for v6 available here.