1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
nativefilesessionhandler.php
См. документацию.
1<?php
2
3namespace Bitrix\Main\Session\Handlers;
4
5use Bitrix\Main\ArgumentException;
6
7class 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
Определения admin_tab.php:4
$options
Определения commerceml2.php:49
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804