Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
closesession.php
1<?php
2
4
6
12final 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}