I am looking into the modSession class, to see if it might be used to store session data for custom modules. Unfortunately, this is still missing from the documentation, so a couple of questions
What is the relation between modSession and modSessionHandler? I read some hints to cache in the documentation, but I can’t see anything concrete there.
Can I add custom fields to a session? If yes, what is the preferred way of doing this?
It seems the session data is stored JSON encoded. Is there any API available to pack/unpack this?
I noticed the session_handler_class setting. What are your thoughts on using this to extend modSession/modSessionHandler?