public function set($name, $value)
    {
        if (is_string($name)) {
            $this->session[$name] = $value;
            return ((isset($this->session[$name]) && null != $this->session[$name])? true : false);
        } else {
            throw new Server500(new \ArrayObject(array("explain" =>
                "Session Error : Your session name is not a string value", "solution" =>
                "Please check your value type")));
        }
    }
public function set($name, $value)
    {
        if (is_string($name)) {
            $this->session[$name] = $value;
            return ((isset($this->session[$name]) && null != $this->session[$name])? true : false);
        } else {
            throw new Server500(new \ArrayObject(array("explain" =>
                "Session Error : Your session name is not a string value", "solution" =>
                "Please check your value type")));
        }
    }
public function set ( $ name , $ value ) { if ( is_string ( $ name ) ) { $ this -> session [ $ name ] = $ value ; return ( ( isset ( $ this -> session [ $ name ] ) && null != $ this -> session [ $ name ] ) ? true : false ) ; } else { throw new Server500 ( new \ ArrayObject ( array ( "explain" => "Session Error : Your session name is not a string value" , "solution" => "Please check your value type" ) ) ) ; } }
Edit a session key
@param string $name Key name
@param mixed $value session item value
@return bool If session exist or not
@throws Server500
Edit a session key