diff --git a/classes/Env.class.php b/classes/Env.class.php index c196bb2..b3104ab 100644 --- a/classes/Env.class.php +++ b/classes/Env.class.php @@ -38,6 +38,18 @@ final class Env { $_SESSION[$var] = $value; } + + /** + * Unsets session var + * + * @param string $var + */ + static function unsetSession($var) + { + if (isset($_SESSION[$var])) { + unset($_SESSION[$var]); + } + } static function getCookie($var, $default = false) {