1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
nativefilesessionhandler.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Main\Session\Handlers;
4
5
use Bitrix\Main\ArgumentException;
6
7
class
NativeFileSessionHandler
extends
\SessionHandler
//implements \SessionUpdateTimestampHandlerInterface
8
{
9
public
function
__construct
(
array
$options
)
10
{
11
$savePath =
$options
[
'savePath'
] ??
null
;
12
if
($savePath ===
null
)
13
{
14
$savePath = ini_get(
'session.save_path'
);
15
}
16
17
$baseDir = $savePath;
18
if
(
$count
= substr_count($savePath,
';'
))
19
{
20
if
(
$count
> 2)
21
{
22
throw
new
ArgumentException
(
'Invalid format for savePath'
,
'savePath'
);
23
}
24
$baseDir = ltrim(strrchr($savePath,
';'
),
';'
);
25
}
26
27
if
($baseDir && !is_dir($baseDir) && !@mkdir($baseDir, 0777,
true
) && !is_dir($baseDir))
28
{
29
// throw new SystemException("Native file session handler was not able to create directory \"{$baseDir}\".");
30
}
31
32
ini_set(
'session.save_handler'
,
'files'
);
33
ini_set(
'session.save_path'
, $savePath);
34
}
35
}
$count
$count
Определения
admin_tab.php:4
Bitrix\Main\ArgumentException
Определения
ArgumentException.php:9
Bitrix\Main\Session\Handlers\NativeFileSessionHandler
Определения
nativefilesessionhandler.php:8
Bitrix\Main\Session\Handlers\NativeFileSessionHandler\__construct
__construct(array $options)
Определения
nativefilesessionhandler.php:9
$options
$options
Определения
commerceml2.php:49
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
bitrix
modules
main
lib
session
handlers
nativefilesessionhandler.php
Создано системой
1.14.0