Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | LOGGED_IN = 1 |
const | LOGGED_OUT = 0 |
const | LOGGED_OUT_BY_LOGIN = 2 |
const | LOGGED_OUT_MANUALLY = 3 |
Protected Member Functions | |
_construct () | |
![]() | |
_construct () | |
_init ($resourceModel) | |
_setResourceModel ($resourceName, $collectionName=null) | |
_getResource () | |
_getEventData () | |
_beforeLoad ($modelId, $field=null) | |
_afterLoad () | |
_hasModelChanged () | |
_getValidatorBeforeSave () | |
_createValidatorBeforeSave () | |
_getValidationRulesBeforeSave () | |
_clearReferences () | |
_clearData () | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
Protected Attributes | |
$isOtherSessionsTerminated = false | |
$securityConfig | |
![]() | |
$_eventPrefix = 'core_abstract' | |
$_eventObject = 'object' | |
$_idFieldName = 'id' | |
$_hasDataChanges = false | |
$_origData | |
$_isDeleted = false | |
$_resource | |
$_resourceCollection | |
$_resourceName | |
$_collectionName | |
$_cacheTag = false | |
$_dataSaveAllowed = true | |
$_isObjectNew = null | |
$_validatorBeforeSave = null | |
$_eventManager | |
$_cacheManager | |
$_registry | |
$_logger | |
$_appState | |
$_actionValidator | |
$storedData = [] | |
![]() | |
$_data = [] | |
Additional Inherited Members | |
![]() | |
static | $_underscoreCache = [] |
Admin Session Info Model
@method string getSessionId() @method int getUserId() getUserId() @method int getStatus() @method string getUpdatedAt() @method string getCreatedAt()
@api
Definition at line 20 of file AdminSessionInfo.php.
__construct | ( | \Magento\Framework\Model\Context | $context, |
\Magento\Framework\Registry | $registry, | ||
ConfigInterface | $securityConfig, | ||
\Magento\Framework\Stdlib\DateTime\DateTime | $dateTime, | ||
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource = null , |
||
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection = null , |
||
array | $data = [] |
||
) |
AdminSessionInfo constructor
\Magento\Framework\Model\Context | $context | |
\Magento\Framework\Registry | $registry | |
ConfigInterface | $securityConfig | |
\Magento\Framework\Stdlib\DateTime\DateTime | $dateTime | |
\Magento\Framework\Model\ResourceModel\AbstractResource | null | $resource | |
\Magento\Framework\Data\Collection\AbstractDb | null | $resourceCollection | |
array | $data |
Definition at line 74 of file AdminSessionInfo.php.
|
protected |
Initialize resource model
Definition at line 94 of file AdminSessionInfo.php.
getFormattedIp | ( | ) |
isLoggedInStatus | ( | ) |
Check if a status is logged in
Definition at line 105 of file AdminSessionInfo.php.
isOtherSessionsTerminated | ( | ) |
Check if other sessions terminated
Definition at line 158 of file AdminSessionInfo.php.
isSessionExpired | ( | ) |
Check whether the session is expired
Definition at line 129 of file AdminSessionInfo.php.
setIsOtherSessionsTerminated | ( | $isOtherSessionsTerminated | ) |
Setter for isOtherSessionsTerminated
bool | $isOtherSessionsTerminated |
Definition at line 170 of file AdminSessionInfo.php.
|
protected |
All other open sessions were terminated
Definition at line 50 of file AdminSessionInfo.php.
|
protected |
Definition at line 56 of file AdminSessionInfo.php.
const LOGGED_IN = 1 |
Admin session status definitionAdmin logged in
Definition at line 29 of file AdminSessionInfo.php.
const LOGGED_OUT = 0 |
Admin logged out
Definition at line 34 of file AdminSessionInfo.php.
const LOGGED_OUT_BY_LOGIN = 2 |
User has been logged out by another login with the same credentials
Definition at line 39 of file AdminSessionInfo.php.
const LOGGED_OUT_MANUALLY = 3 |
User has been logged out manually from another session
Definition at line 44 of file AdminSessionInfo.php.