src/snac/server/database/SQL.php
/**
     * Return the id of a session by token.
     *
     * If the session exists for this user, return the record.
     *
     * @param integer $userID A user id
     *
     * @param string $accessToken A session token
     *
     * @return string[] The session record as a list with keys appuser_fk, access_token, expires.
     *
     */
Return the id of a session by token.
If the session exists for this user, return the record.

@param integer $userID A user id

@param string $accessToken A session token

@return string[] The session record as a list with keys appuser_fk, access_token, expires.
Return the id of a session by token . If the session exists for this user return the record . @param integer $userID A user id @param string $accessToken A session token @return string [] The session record as a list with keys appuser_fk access_token expires .
public function selectSession($userID, $accessToken)
    {
        $result = $this->sdb->query(
            'select * from session where appuser_fk=$1 and access_token=$2',
            array($userID, $accessToken));
        $row = $this->sdb->fetchrow($result);
        return $row;
    }
public function selectSession ( $ userID , $ accessToken ) { $ result = $ this -> sdb -> query ( 'select * from session where appuser_fk=$1 and access_token=$2' , array ( $ userID , $ accessToken ) ) ; $ row = $ this -> sdb -> fetchrow ( $ result ) ; return $ row ; }
Return the id of a session by token.
Return the id of a session by token .