Browse Source

session_start Notice disabled

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@53 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
akulikov 16 years ago
parent
commit
e846f2cd63
  1. 4
      classes/User.class.php

4
classes/User.class.php

@ -52,7 +52,7 @@ class User
static function process()
{
if (Env::getCookie(session_name())) { //есть сессия
session_start();
@session_start();
self::setInfo(Env::Session('user'));
} elseif (Env::getCookie('login') && Env::getCookie('login_hash')) {
self::remember();
@ -64,7 +64,7 @@ class User
Env::setCookie('login', self::$user->login, TIME_NOW + LOGIN_COOKIE_TTL);
Env::setCookie('login_hash', self::getHash(), TIME_NOW + LOGIN_COOKIE_TTL);
session_start();
@session_start();
$_SESSION['user'] = self::$user;
}

Loading…
Cancel
Save