/** * if session has not started, start sessions * eğer session başlamışsa , sessionu başlamasını şart koşar */ public static function init() { if (self::$_sessionStarted == false) { session_start(); self::$_sessionStarted = true; } }
public static function set($key, $value) { if (!self::$_sess instanceof stdClass) { self::$_sess = new stdClass(); } self::$_sess->{$key} = $value; Cache::Set(SESSION_NAME . '_' . self::$_id, self::$_sess, SESSION_EXPIRE); }