-
Notifications
You must be signed in to change notification settings - Fork 1
reference:Session variables
Aaron Junker edited this page Apr 17, 2021
·
5 revisions
This article is a stub
This is a list of all used session variables in USOC.
You can access them via the magic array $_SESSION[""].
Session variables should be used to save something temporarily in the user session. For example when a 2fa code gets requested.
Don't always trust the session variables. For example you can trust on $_SESSION["PermissionLevel"] to show the button to the backend, but if the user wants to access the backend you should double check if he has the permission to do so.
All variables get unset in (root) /logout.php
| Name | Description | Set in... |
|---|---|---|
| PermissionLevel | The permission level of the currently logged in user. |
Manuals
- manual:Download-and-install-USOC
- manual:How to install USOC manually
- manual:plugins
- manual:Set-up-oAuth-with-google
Github Manuals
Reference Index