Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
strictsessionhandler.php
1
<?php
2
3
namespace
Bitrix\Main\Session\Handlers
;
4
5
class
StrictSessionHandler
extends
AbstractSessionHandler
6
{
8
private
$handler;
9
10
public
function
__construct
(
NativeFileSessionHandler
$handler)
11
{
12
$this->handler = $handler;
13
}
14
15
#[\ReturnTypeWillChange]
16
public
function
gc
($maxLifeTime)
17
{
18
return
$this->handler->gc($maxLifeTime);
19
}
20
21
public
function
open
($savePath, $sessionName): bool
22
{
23
return
$this->handler->open($savePath, $sessionName);
24
}
25
26
public
function
updateTimestamp
(
$sessionId
, $sessionData): bool
27
{
28
return
$this->
write
(
$sessionId
, $sessionData);
29
}
30
31
protected
function
processRead
(
$sessionId
): string
32
{
33
return
$this->handler->read(
$sessionId
);
34
}
35
36
protected
function
processWrite
(
$sessionId
, $sessionData): bool
37
{
38
return
$this->handler->write(
$sessionId
, $sessionData);
39
}
40
41
protected
function
lock
(
$sessionId
): bool
42
{
43
return
true
;
44
}
45
46
protected
function
unlock
(
$sessionId
): bool
47
{
48
return
true
;
49
}
50
51
protected
function
processDestroy
(
$sessionId
): bool
52
{
53
return
$this->handler->destroy(
$sessionId
);
54
}
55
56
public
function
close
(): bool
57
{
58
return
$this->handler->close();
59
}
60
}
Bitrix\Main\Session\Handlers\AbstractSessionHandler
Definition
abstractsessionhandler.php:11
Bitrix\Main\Session\Handlers\AbstractSessionHandler\$sessionId
$sessionId
Definition
abstractsessionhandler.php:17
Bitrix\Main\Session\Handlers\AbstractSessionHandler\write
write($sessionId, $sessionData)
Definition
abstractsessionhandler.php:76
Bitrix\Main\Session\Handlers\NativeFileSessionHandler
Definition
nativefilesessionhandler.php:9
Bitrix\Main\Session\Handlers\StrictSessionHandler
Definition
strictsessionhandler.php:6
Bitrix\Main\Session\Handlers\StrictSessionHandler\processWrite
processWrite($sessionId, $sessionData)
Definition
strictsessionhandler.php:36
Bitrix\Main\Session\Handlers\StrictSessionHandler\__construct
__construct(NativeFileSessionHandler $handler)
Definition
strictsessionhandler.php:10
Bitrix\Main\Session\Handlers\StrictSessionHandler\lock
lock($sessionId)
Definition
strictsessionhandler.php:41
Bitrix\Main\Session\Handlers\StrictSessionHandler\close
close()
Definition
strictsessionhandler.php:56
Bitrix\Main\Session\Handlers\StrictSessionHandler\updateTimestamp
updateTimestamp($sessionId, $sessionData)
Definition
strictsessionhandler.php:26
Bitrix\Main\Session\Handlers\StrictSessionHandler\processRead
processRead($sessionId)
Definition
strictsessionhandler.php:31
Bitrix\Main\Session\Handlers\StrictSessionHandler\processDestroy
processDestroy($sessionId)
Definition
strictsessionhandler.php:51
Bitrix\Main\Session\Handlers\StrictSessionHandler\unlock
unlock($sessionId)
Definition
strictsessionhandler.php:46
Bitrix\Main\Session\Handlers\StrictSessionHandler\open
open($savePath, $sessionName)
Definition
strictsessionhandler.php:21
Bitrix\Main\Session\Handlers\StrictSessionHandler\gc
gc($maxLifeTime)
Definition
strictsessionhandler.php:16
Bitrix\Main\Session\Handlers
Definition
abstractsessionhandler.php:3
modules
main
lib
session
handlers
strictsessionhandler.php
Создано системой
1.10.0