Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
closesession.php
1
<?php
2
3
namespace
Bitrix\Main\Engine\ActionFilter
;
4
5
use
Bitrix\Main\Event
;
6
12
final
class
CloseSession
extends
Base
13
{
17
private
$enabled;
18
23
public
function
__construct
($enabled =
true
)
24
{
25
$this->enabled = $enabled;
26
27
parent::__construct();
28
}
29
30
public
function
onBeforeAction
(
Event
$event)
31
{
32
if
(!$this->enabled)
33
{
34
return
;
35
}
36
37
session_write_close();
38
}
39
}
Bitrix\Main\Engine\ActionFilter\Base
Definition
base.php:15
Bitrix\Main\Engine\ActionFilter\CloseSession
Definition
closesession.php:13
Bitrix\Main\Engine\ActionFilter\CloseSession\onBeforeAction
onBeforeAction(Event $event)
Definition
closesession.php:30
Bitrix\Main\Engine\ActionFilter\CloseSession\__construct
__construct($enabled=true)
Definition
closesession.php:23
Bitrix\Main\Event
Definition
event.php:5
Bitrix\Main\Engine\ActionFilter
Definition
authentication.php:4
modules
main
lib
engine
actionfilter
closesession.php
Создано системой
1.10.0