A session is created when you visit the Panel login page, not when you visit the frontend, unless you use sessions on the frontend, for example for a shopping cart or have a frontend login.
Oke, so how does that work? Does it automatically detects if you set data in the ‘current session’, or do you need to create a session manually in a template (or route)?
And if I do not need to create a session manually, how to know it is a ‘new session’? (or do I just dirty-flag it with a session-data flag?)
There is not much to go on. The following snippet is the only thing I could find for creating a new session.
$session = $kirby->session(['long' => true]);
Is the session automatically assigned as ‘current’? Do I have to create one before I can put data in the
‘session storage’? And where do I need to create a session (if I have to in order to use the ‘session storage’)?