Hello,
I need to restrict the page view of my app to a single guest user.
This means if a session for user guest is already open for that page, other guest users are not allowed to view the same page.
$session doesn't help much in that case as far as I can see from the docs (or maybe $session->getHistory() can help?).
I think I could approach it this way:
1. Set session storage to DB
2. Query session table in DB for open sessions for that page and act accordingly
Is there anything built into the API which I have missed that I can utilize to query the session table?
Or would I have to use $database and build my own query?
Any insight on this or idea how to tackle the problem would be much appreciated.