src/snac/server/database/DBUser.php
/**
     * Check session exists
     *
     * Find out if a session exists for this User with the token getToken(). Expiration time is ignored. If
     * somehow a session token has been applied to 2 users, this will still only return the token for $user,
     * and that is good.
     *
     * @param \snac\data\User User object
     * @return boolean True on success, else false.
     */
Check session exists
Find out if a session exists for this User with the token getToken(). Expiration time is ignored. If
somehow a session token has been applied to 2 users, this will still only return the token for $user,
and that is good.

@param \snac\data\User User object
@return boolean True on success, else false.
Check session exists Find out if a session exists for this User with the token getToken () . Expiration time is ignored . If somehow a session token has been applied to 2 users this will still only return the token for $user and that is good . @param \ snac \ data \ User User object @return boolean True on success else false .
public function sessionExists($user)
    {
        $currentToken = $user->getToken();
        $accessToken = $currentToken['access_token'];
        $rec = $this->sql->selectSession($user->getUserID(), $accessToken);
        if ($rec && array_key_exists('appuser_fk', $rec))
        {
            return true;
        }
        return false;
    }
public function sessionExists ( $ user ) { $ currentToken = $ user -> getToken ( ) ; $ accessToken = $ currentToken [ 'access_token' ] ; $ rec = $ this -> sql -> selectSession ( $ user -> getUserID ( ) , $ accessToken ) ; if ( $ rec && array_key_exists ( 'appuser_fk' , $ rec ) ) { return true ; } return false ; }
Check session exists
 Find out if a session exists for this User with the token getToken().
Check session exists Find out if a session exists for this User with the token getToken () .