src/snac/server/ServerExecutor.php
/**
     * Start the user session
     *
     * Starts the user session (authenticates the user, if needed), and fills out the response
     * with a sucess or failure based on whether or not the user was successfully authenticated, as
     * well as the user information (snac ID) which may be useful to the web ui and other clients
     *
     * @return string[] The response to send to the client
     */
Start the user session
Starts the user session (authenticates the user, if needed), and fills out the response
with a sucess or failure based on whether or not the user was successfully authenticated, as
well as the user information (snac ID) which may be useful to the web ui and other clients

@return string[] The response to send to the client
Start the user session Starts the user session ( authenticates the user if needed ) and fills out the response with a sucess or failure based on whether or not the user was successfully authenticated as well as the user information ( snac ID ) which may be useful to the web ui and other clients @return string [] The response to send to the client
public function startSession() {
        $response = array();
        $this->authenticateUser($this->user);
        if ($this->user != null) {
            $response["user"] = $this->user->toArray();
            $response["result"] = "success";
        } else {
            $response["result"] = "failure";
        }
        return $response;
    }
public function startSession ( ) { $ response = array ( ) ; $ this -> authenticateUser ( $ this -> user ) ; if ( $ this -> user != null ) { $ response [ " user " ] = $ this -> user -> toArray ( ) ; $ response [ " result " ] = " success " ; } else { $ response [ " result " ] = " failure " ; } return $ response ; }
Start the user session
 Starts the user session (authenticates the user, if needed), and fills out the response
 with a sucess or failure based on whether or not the user was successfully authenticated, as
 well as the user information (snac ID) which may be useful to the web ui and other clients
Start the user session Starts the user session ( authenticates the user if needed ) and fills out the response with a sucess or failure based on whether or not the user was successfully authenticated as well as the user information ( snac ID ) which may be useful to the web ui and other clients