Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/public/ |
Upload File : |
<?php /** * @global CUser $USER */ define("NO_KEEP_STATISTIC", true); define("NOT_CHECK_FILE_PERMISSIONS", true); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); $status = "SESSION_EXPIRED"; if(check_bitrix_sessid()) { //still the same session $status = "OK"; } elseif($USER->IsAuthorized()) { //the user got a new session, but has authorized by the stored cookie //change the sessid so the user can post a form successfully $request = \Bitrix\Main\Context::getCurrent()->getRequest(); if($request->getCookie("UIDH") <> '') { $sessid = \Bitrix\Main\UI\SessionExpander::getSignedValue($request["k"]); if($sessid !== false) { bitrix_sessid_set($sessid); $status = "SESSION_CHANGED"; } } } echo $status; \Bitrix\Main\Application::getInstance()->end();