public static function set($key, $value = false)
    {
        if (is_array($key) && $value == false) {
            foreach ($key as $name => $value) {
                $_SESSION[self::$prefix . $name] = $value;
            }
        } else {
            $_SESSION[self::$prefix . $key] = $value;
        }

        return true;
    }
public static function set($key, $value = false)
    {
        if (is_array($key) && $value == false) {
            foreach ($key as $name => $value) {
                $_SESSION[self::$prefix . $name] = $value;
            }
        } else {
            $_SESSION[self::$prefix . $key] = $value;
        }

        return true;
    }
public static function set ( $ key , $ value = false ) { if ( is_array ( $ key ) && $ value == false ) { foreach ( $ key as $ name => $ value ) { $ _SESSION [ self :: $ prefix . $ name ] = $ value ; } } else { $ _SESSION [ self :: $ prefix . $ key ] = $ value ; } return true ; }
Add value to a session.

@param string $key   → name the data to save
@param mixed  $value → the data to save

@return bool true
Add value to a session .