Example #1
0
 /**
  * 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;
     }
 }
Example #2
0
 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);
 }