Profile cover photo
Profile photo
Richard Deeming
27 followers
27 followers
About
Richard's posts

Did someone break the .NET 3.5 version of MicrosoftAjax.js on Windows 8.1 update 1, or is it just my PC?

Handlers added via Sys.Application.add_init work fine on the server (Windows 2008 R2), but never fire on my new PC. (Tested in Firefox 29.1)

The only difference I can find is the MicrosoftAjax.js file:

Server version:
FileVersion: 3.5.30729.5458

    function Sys$_Application$initialize() {
        /// <summary locid="M:J#Sys.Application.initialize" />
        if (arguments.length !== 0) throw Error.parameterCount();
        if(!this._initialized && !this._initializing) {
            this._initializing = true;
            window.setTimeout(Function.createDelegate(this, this._doInitialize), 0);
        }
    }

Local version:
FileVersion: 3.5.30729.7903

    function Sys$_Application$initialize() {
        /// <summary locid="M:J#Sys.Application.initialize" />
        if (arguments.length !== 0) throw Error.parameterCount();
        if(!this._initialized && !this._initializing) {
            this._initializing = true;
            var check, er, app = this;
            function init() { if (!app._initialized) app._doInitialize(); }
    
            var onload = function() {
                Sys.UI.DomEvent.removeHandler(window, "load", onload);
                init();
            }
            Sys.UI.DomEvent.addHandler(window, "load", onload);
            if (document.addEventListener) {
                try {
                    document.addEventListener("DOMContentLoaded", check = function() {
                        document.removeEventListener("DOMContentLoaded", check, false);
                        init();
                    }, false);
                }
                catch (er) { }
            }
            else if (document.attachEvent) {
                if ((window == window.top) && document.documentElement.doScroll) {
                    var timeout, el = document.createElement("div");
                    check = function() {
                        try {
                            el.doScroll("left");
                        }
                        catch (er) {
                            timeout = window.setTimeout(check, 0);
                            return;
                        }
                        el = null;
                        init();
                    }
                    check();
                }
                else {
                    document.attachEvent("onreadystatechange", check = function() {
                        if (document.readyState === "complete") {
                            document.detachEvent("onreadystatechange", check);
                            init();
                        }
                    });
                }
            }
        }
    }

Does anyone know of a (preferably open-source) solution for server-side revocation of FormsAuth tickets?

Customer is complaining that if they store the authentication cookie, log out, and then issue a new request with the stored cookie, they're still authenticated.

Before I start trying to build something myself, I'm wondering if it's already been done.
Wait while more posts are being loaded