• Модуль: statistic
  • Путь к файлу: ~/bitrix/modules/statistic/classes/mysql/statistic.php
  • Класс: CStatistics
  • Вызов: CStatistics::GetSessionDataByMD5
static function GetSessionDataByMD5($GUEST_MD5)
{
	$err_mess = "File: ".__FILE__."
Line: "; $DB = CDatabase::GetModuleConnection('statistic'); $php_session_time = intval(ini_get("session.gc_maxlifetime")); $strSql = " SELECT ID, SESSION_DATA FROM b_stat_session_data WHERE GUEST_MD5 = '".$DB->ForSql($GUEST_MD5)."' and DATE_LAST > DATE_ADD(now(), INTERVAL - $php_session_time SECOND) LIMIT 1 "; $res = $DB->Query($strSql, false, $err_mess.__LINE__); return $res; }