clarkwinkelmann So I must use remember tokens and change its expiration when setting the cookie (at least for beta16)?
Here is the dump (if a possibility to use session tokens exists I want to use it):
Dumped before $session->start()
Server request:
C:\xampp\htdocs\flarum\vendor\flarum\core\src\Http\Middleware\StartSession.php:60:
object(Illuminate\Session\Store)[816]
protected 'id' => string 'nAT17Q50QUcdB8N6csoTabZy6zMX0OxQZKrVQFYc' (length=40)
protected 'name' => string 'session' (length=7)
protected 'attributes' =>
array (size=0)
empty
protected 'handler' =>
object(Illuminate\Session\FileSessionHandler)[800]
protected 'files' =>
object(Illuminate\Filesystem\Filesystem)[170]
protected 'path' => string 'C:\xampp\htdocs\flarum/storage/sessions' (length=39)
protected 'minutes' => int 120
protected 'started' => boolean false
Browser request:
C:\xampp\htdocs\flarum\vendor\flarum\core\src\Http\Middleware\StartSession.php:60:
object(Illuminate\Session\Store)[816]
protected 'id' => string 'FcMpJRUOtnfRegku1Mj7UcWsxDYIxwyF79jXd43e' (length=40)
protected 'name' => string 'session' (length=7)
protected 'attributes' =>
array (size=0)
empty
protected 'handler' =>
object(Illuminate\Session\FileSessionHandler)[800]
protected 'files' =>
object(Illuminate\Filesystem\Filesystem)[170]
protected 'path' => string 'C:\xampp\htdocs\flarum/storage/sessions' (length=39)
protected 'minutes' => int 120
protected 'started' => boolean false
Inside my controller:
Server request:
C:\xampp\htdocs\flarum\vendor\maicol07\flarum-ext-sso\src\SessionController.php:32:null
Browser request:
C:\xampp\htdocs\flarum\vendor\maicol07\flarum-ext-sso\src\SessionController.php:32:
object(Illuminate\Session\Store)[816]
protected 'id' => string 'FcMpJRUOtnfRegku1Mj7UcWsxDYIxwyF79jXd43e' (length=40)
protected 'name' => string 'session' (length=7)
protected 'attributes' =>
array (size=2)
'_token' => string 'lRHoJyhyTMuMCOnAspCWiWMO5r0LAc2nZdir6LP9' (length=40)
'_flash' =>
array (size=2)
'old' =>
array (size=0)
...
'new' =>
array (size=0)
...
protected 'handler' =>
object(Illuminate\Session\FileSessionHandler)[800]
protected 'files' =>
object(Illuminate\Filesystem\Filesystem)[170]
protected 'path' => string 'C:\xampp\htdocs\flarum/storage/sessions' (length=39)
protected 'minutes' => int 120
protected 'started' => boolean true
It seems it creates the session for the server request in the middleware but it isn't sent to my controller