Browse Source

set session params

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@47 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
pzinovkin 16 years ago
parent
commit
2e497d50c3
  1. 5
      classes/Env.class.php

5
classes/Env.class.php

@ -34,6 +34,11 @@ final class Env
return isset($_SESSION[$var]) ? $_SESSION[$var] : $default;
}
static function setSession($var, $value)
{
$_SESSION[$var] = $value;
}
static function getCookie($var, $default = false)
{
return isset($_COOKIE[$var]) ? $_COOKIE[$var] : $default;

Loading…
Cancel
Save