src/snac/server/ServerExecutor.php
/**
     * End user session
     *
     * This ends the current user's session by using DBUser's removeSession method.
     *
     * @return string[] The response to send to the client
     */
End user session
This ends the current user's session by using DBUser's removeSession method.

@return string[] The response to send to the client
End user session This ends the current user ' s session by using DBUser ' s removeSession method . @return string [] The response to send to the client
public function endSession() {
        $response = array();
        if ($this->user != null) {
            $this->logger->addDebug("Ending Session for user", $this->user->toArray());
            $this->uStore->removeSession($this->user);
            $response["user"] = $this->user->toArray();
            $response["result"] = "success";
        } else {
            $response["result"] = "failure";
        }
        $this->logger->addDebug("User Session ended");
        return $response;
    }
public function endSession ( ) { $ response = array ( ) ; if ( $ this -> user != null ) { $ this -> logger -> addDebug ( " Ending Session for user " , $ this -> user -> toArray ( ) ) ; $ this -> uStore -> removeSession ( $ this -> user ) ; $ response [ " user " ] = $ this -> user -> toArray ( ) ; $ response [ " result " ] = " success " ; } else { $ response [ " result " ] = " failure " ; } $ this -> logger -> addDebug ( " User Session ended " ) ; return $ response ; }
End user session
 This ends the current user's session by using DBUser's removeSession method.
End user session This ends the current user ' s session by using DBUser ' s removeSession method .