Skip to content

reference:Session variables

Aaron Junker edited this page Apr 17, 2021 · 5 revisions

This article is a stub

Session variables

This is a list of all used session variables in USOC.

You can access them via the magic array $_SESSION[""].

Usage

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

Variables

Name Description Set in...
PermissionLevel The permission level of the currently logged in user.

Clone this wiki locally