src/OwpUsers.inc.php
public function logOut()
    {
        // Execute owpUDF_On_logOut user defined function
        if (function_exists("owpUDF_On_logOut")) {
            $owpUDF_On_logOut = owpUDF_On_logOut(array("userID" => (int)self::userID(), "db" => $this->OwpDBMySQLi));
            if ($owpUDF_On_logOut) {
                throw new Exception($owpUDF_On_logOut, 30);
            }
        }

        if (isset($_SESSION["userData"])) {
            unset($_SESSION["userData"]);
        }

        if (isset($_COOKIE["owpSite"])) {
            $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;
            setcookie("owpSite", "", 0, "/", $domain, false);
            unset($_COOKIE["owpSite"]);
        }

        return (boolean)isset($_SESSION["userData"]);

    }
public function logOut()
    {
        // Execute owpUDF_On_logOut user defined function
        if (function_exists("owpUDF_On_logOut")) {
            $owpUDF_On_logOut = owpUDF_On_logOut(array("userID" => (int)self::userID(), "db" => $this->OwpDBMySQLi));
            if ($owpUDF_On_logOut) {
                throw new Exception($owpUDF_On_logOut, 30);
            }
        }

        if (isset($_SESSION["userData"])) {
            unset($_SESSION["userData"]);
        }

        if (isset($_COOKIE["owpSite"])) {
            $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;
            setcookie("owpSite", "", 0, "/", $domain, false);
            unset($_COOKIE["owpSite"]);
        }

        return (boolean)isset($_SESSION["userData"]);

    }
logOut

@method logOut() Log the user out, clearing the user session
@access public
@return boolean

@throws Exception Thrown on UDF failures code 30

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