/** * @return bool */ public static function Start() { if (@session_name() !== CSession::$sSessionName || !CSession::$bStarted || !CSession::$bFirstStarted) { if (@session_name()) { @session_write_close(); if (isset($GLOBALS['PROD_NAME']) && false !== strpos($GLOBALS['PROD_NAME'], 'Plesk')) { @session_module_name('files'); } } @session_set_cookie_params(0); if (!empty(CSession::$sSessionName)) { @session_name(CSession::$sSessionName); } CSession::$bFirstStarted = true; CSession::$bStarted = true; return @session_start(); } return true; }