PHPFusion\Authenticate::getRedirectUrl PHP Method

getRedirectUrl() public static method

Set User Cookie
public static getRedirectUrl ( $errorId, $userStatus = "", $userId = "" )
    public static function getRedirectUrl($errorId, $userStatus = "", $userId = "")
    {
        global $_SERVER;
        $return = BASEDIR . "login.php?error=" . $errorId;
        if ($userStatus) {
            $return .= "&status=" . $userStatus;
        }
        if ($userId) {
            $return .= "&id=" . $userId;
        }
        $return .= "&redirect=" . urlencode($_SERVER['PHP_SELF']);
        if (FUSION_QUERY) {
            $return .= urlencode("?" . preg_replace("/&/i", "&", FUSION_QUERY));
        }
        return $return;
    }