src/snac/server/database/SQL.php
/**
     * Update a session expiration timestamp
     *
     * @param int $userID The User's ID to update
     * @param string $accessToken A session token
     * @param string $extend An amount of time by which to extend the session
     * @return boolean true on success, false otherwise
     */
Update a session expiration timestamp
@param int $userID The User's ID to update
@param string $accessToken A session token
@param string $extend An amount of time by which to extend the session
@return boolean true on success, false otherwise
Update a session expiration timestamp @param int $userID The User ' s ID to update @param string $accessToken A session token @param string $extend An amount of time by which to extend the session @return boolean true on success false otherwise
public function updateByExtendingSession($userID, $accessToken, $extend)
    {
        $result = $this->sdb->query(
            'update session set expires=expires+$1 where access_token=$2 and appuser_fk=$3 returning appuser_fk',
            array($extend, $accessToken, $userID));
        $row = $this->sdb->fetchrow($result);
        if ($row && array_key_exists('appuser_fk', $row))
        {
            return true;
        }
        return false;
    }
public function updateByExtendingSession ( $ userID , $ accessToken , $ extend ) { $ result = $ this -> sdb -> query ( 'update session set expires=expires+$1 where access_token=$2 and appuser_fk=$3 returning appuser_fk' , array ( $ extend , $ accessToken , $ userID ) ) ; $ row = $ this -> sdb -> fetchrow ( $ result ) ; if ( $ row && array_key_exists ( 'appuser_fk' , $ row ) ) { return true ; } return false ; }
Update a session expiration timestamp
 @param int $userID The User's ID to update
 @param string $accessToken A session token
 @param string $extend An amount of time by which to extend the session
 @return boolean true on success, false otherwise
Update a session expiration timestamp @param int $userID The User ' s ID to update @param string $accessToken A session token @param string $extend An amount of time by which to extend the session @return boolean true on success false otherwise