Session management: Add PHPDoc

This commit is contained in:
Molkobain
2021-09-08 14:54:20 +02:00
parent 0de4e62fcd
commit 08946066fb
3 changed files with 5 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ class LoginForm extends AbstractLoginFSMExtension implements iLoginUIExtension
if (Session::IsSet('auth_user')) if (Session::IsSet('auth_user'))
{ {
// If FSM reenter this state (example 2FA) then the auth_user is not resubmitted // If FSM reenter this state (example 2FA) then the auth_user is not resubmitted
$sAuthUser =Session::Get('auth_user'); $sAuthUser = Session::Get('auth_user');
} }
else else
{ {

View File

@@ -102,7 +102,7 @@ class privUITransaction
/** /**
* The original (and by default) mechanism for storing transaction information * The original (and by default) mechanism for storing transaction information
* as an array in the _SESSION variable * as an array in the _SESSION variable
* @see Session * @see \Combodo\iTop\Application\Helper\Session
* *
*/ */
class privUITransactionSession class privUITransactionSession

View File

@@ -16,8 +16,11 @@ namespace Combodo\iTop\Application\Helper;
*/ */
class Session class Session
{ {
/** @var int|null */
public static $iSessionId = null; public static $iSessionId = null;
/** @var bool */
protected static $bIsInitialized = false; protected static $bIsInitialized = false;
/** @var bool */
protected static $bSessionStarted = false; protected static $bSessionStarted = false;
public static function Start() public static function Start()