From 2e497d50c3ced2a6dffa7ad6121e9625bbced0b0 Mon Sep 17 00:00:00 2001 From: pzinovkin Date: Tue, 20 Jan 2009 16:11:02 +0000 Subject: [PATCH] set session params git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@47 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Env.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classes/Env.class.php b/classes/Env.class.php index 33c3c5b..45c326c 100644 --- a/classes/Env.class.php +++ b/classes/Env.class.php @@ -33,6 +33,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) {