src/OwpUsers.inc.php
public function rememberMe()
    {

        if (!(int)self::userID()) {

            if (!SqueakyMindsPhpHelper::cookievar("owpSite")) {
                return false;
            }

            $owpSite = json_decode(SqueakyMindsPhpHelper::cookievar("owpSite"), true);

            $a1 = $this->get_user_record_noMeta(" WHERE tbl_users.userID = " . (int)$owpSite["id"]);

            if (!$a1) {
                return false;
            }

            $PasswordHash = new PasswordHash(8, false);

            $matches = $PasswordHash->CheckPassword((string)$owpSite["rememberme"], $a1["rememberme_hash"]);

            if (!$matches) {
                return false;
            }

            $this->userLoginViaUserID((int)$owpSite["id"]);
            $_SESSION["rememberMe"] = true;
            return true;
        }

        return false;

    }
public function rememberMe()
    {

        if (!(int)self::userID()) {

            if (!SqueakyMindsPhpHelper::cookievar("owpSite")) {
                return false;
            }

            $owpSite = json_decode(SqueakyMindsPhpHelper::cookievar("owpSite"), true);

            $a1 = $this->get_user_record_noMeta(" WHERE tbl_users.userID = " . (int)$owpSite["id"]);

            if (!$a1) {
                return false;
            }

            $PasswordHash = new PasswordHash(8, false);

            $matches = $PasswordHash->CheckPassword((string)$owpSite["rememberme"], $a1["rememberme_hash"]);

            if (!$matches) {
                return false;
            }

            $this->userLoginViaUserID((int)$owpSite["id"]);
            $_SESSION["rememberMe"] = true;
            return true;
        }

        return false;

    }
rememberMe

@method rememberMe() Load the user's profile based on the remember me cookie if the hash matches
@access public
@return boolean
@throws Exception

@author  Brian Tafoya <btafoya@briantafoya.com>
@version 1.0