This class can be used to manage user access sessions.
It provides a singleton interface to access user access data. It can:
- Get the session identifier
- Check whether a session variable is registered
- Register a session variable
- Retrieve the value of a session variable
- Clear all session variables
- Destroy the session
- Set and check the protection mode, which can make the class redirect the browser to another URL when it is set.