src/OwpUsers.inc.php
public function rememberMeSet()
    {
        $uuid = SqueakyMindsPhpHelper::uuid();
        $new_hash = $this->genPasswdHash($uuid);

        $value = json_encode(array("id" => self::userID(), "rememberme" => $uuid));
        $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;
        setcookie("owpSite", $value, strtotime('+30 days'), "/", $domain, false);

        $this->OwpDBMySQLi->query(
            "
                UPDATE tbl_users
                SET tbl_users.rememberme_hash = '" . (string)$new_hash . "'
                WHERE tbl_users.userID = " . (int)self::userID() . "
                LIMIT 1"
        );

        return $this->rememberMe();
    }
public function rememberMeSet()
    {
        $uuid = SqueakyMindsPhpHelper::uuid();
        $new_hash = $this->genPasswdHash($uuid);

        $value = json_encode(array("id" => self::userID(), "rememberme" => $uuid));
        $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;
        setcookie("owpSite", $value, strtotime('+30 days'), "/", $domain, false);

        $this->OwpDBMySQLi->query(
            "
                UPDATE tbl_users
                SET tbl_users.rememberme_hash = '" . (string)$new_hash . "'
                WHERE tbl_users.userID = " . (int)self::userID() . "
                LIMIT 1"
        );

        return $this->rememberMe();
    }
rememberMeSet

@method rememberMeSet() Set the remember me cookie
@access public
@return boolean
@throws Exception

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