1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
session.php
См. документацию.
1
<?php
5
define(
"NO_KEEP_STATISTIC"
,
true
);
6
define(
"NOT_CHECK_FILE_PERMISSIONS"
,
true
);
7
8
require_once(
$_SERVER
[
"DOCUMENT_ROOT"
].
"/bitrix/modules/main/include/prolog_before.php"
);
9
10
$status
=
"SESSION_EXPIRED"
;
11
12
if
(
check_bitrix_sessid
())
13
{
14
//still the same session
15
$status
=
"OK"
;
16
}
17
elseif
(
$USER
->IsAuthorized())
18
{
19
//the user got a new session, but has authorized by the stored cookie
20
//change the sessid so the user can post a form successfully
21
$request
= \Bitrix\Main\Context::getCurrent()->getRequest();
22
23
if
(
$request
->getCookie(
"UIDH"
) <>
''
)
24
{
25
$sessid =
\Bitrix\Main\UI\SessionExpander::getSignedValue
(
$request
[
"k"
]);
26
if
($sessid !==
false
)
27
{
28
bitrix_sessid_set
($sessid);
29
$status
=
"SESSION_CHANGED"
;
30
}
31
}
32
}
33
34
echo
$status
;
35
\Bitrix\Main\Application::getInstance
()->end();
$request
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения
catalog_reindex.php:36
Bitrix\Main\Application\getInstance
static getInstance()
Определения
application.php:98
Bitrix\Main\UI\SessionExpander\getSignedValue
static getSignedValue($signedParam)
Определения
sessionexpander.php:53
$_SERVER
$_SERVER["DOCUMENT_ROOT"]
Определения
cron_frame.php:9
$USER
global $USER
Определения
csv_new_run.php:40
$status
$status
Определения
session.php:10
elseif
if(check_bitrix_sessid()) elseif( $USER->IsAuthorized())
Определения
session.php:17
check_bitrix_sessid
check_bitrix_sessid($varname='sessid')
Определения
tools.php:4686
bitrix_sessid_set
bitrix_sessid_set($val=false)
Определения
tools.php:4667
bitrix
modules
main
public
session.php
Создано системой
1.14.0