I have a custom class extending PdoSessionStorage, but I don\'t know how to catch attributes from the session to save them as independent fields in the database.
Oth
I've found it!
My CustomPdoSessionStorage Class extends the NativeSessionStorage, which manages the $_SESSION array (read, write, etc...).
CustomPdoSessionStorage
NativeSessionStorage
$_SESSION
So, from my class I can use $this->read('userId') and store it on my DB.
$this->read('userId')
So thanks a lot @hakre