cancel
Showing results for 
Search instead for 
Did you mean: 

IE cookies disabled but they are not

sdooley
Champ in-the-making
Champ in-the-making
Hello,

I have searched the forums for an answer to this issue but have had no luck, so maybe one of you can shed some light on this for me. Anyway, when my users try to log into the share site of Alfresco they get "Cookies are Disabled please enable cookies" at the login  when they use IE 7 or 8. I use firefox and mine works flawless. I have verified that cookies are in fact on and that there is no other third party software blocking them. I am at a loss.

Any help on this would be greatly appreciated

Thanks,
Shane
4 REPLIES 4

loftux
Star Contributor
Star Contributor
Made this test based on tips from stackoverflow.

Put this in file tomcat/webapps/alfresco/cookie.html the browse servername/alfresco/cookie.html
<html>
<body>
<script type="text/javascript">
    function createCookie(name, value, days) {
        var expires;
        if (days) {
            var date = new Date();
            date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
            expires = "; expires=" + date.toGMTString();
        }
        else expires = "";
        document.cookie = name + "=" + value + expires + "; path=/";
    }

    function readCookie(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for (var i = 0; i < ca.length; i++) {
            var c = ca[i];
            while (c.charAt(0) == ' ') c = c.substring(1, c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
        }
        return null;
    }

    function eraseCookie(name) {
        createCookie(name, "", -1);
    }

    function areCookiesEnabled() {
        var r = false;
        createCookie("testing", "Hello", 1);
        if (readCookie("testing") != null) {
            r = true;
            eraseCookie("testing");
        }
        return r;
    }
</script>

Cookie tester. If javascript is enabled will display popup dialog telling if cookies are enabled.

<script type="text/javascript">
    alert('Cookiea enabled: '+areCookiesEnabled());
</script>
</body>
</html>
This will tell if cookies are enabled or not.
Just another test to se if there is something wrong with Alfresco cookie detection, or your users actually have cookies turned off.

sdooley
Champ in-the-making
Champ in-the-making
Loftux,

Thanks for the tool, when I run it using IE I get " Internet Explorer restricted this webpage from running scripts or Active X controls" And it has a button for Allow blocked content. I push the button then your dialog box appears. I have tryed adjusting all Active X controls but to no avail. any thoughts?

loftux
Star Contributor
Star Contributor
But what did it say, true or false?

Did you run it by opening locally, then you would get that warning. You MUST run it from a web server.

Are the PC part of a domain, and some domain policy kicks in?
What security zone are your IE in? If not familiar with the concept, try googling http://www.google.com/search?q=internet+explorer+security+zones

I think your IE is in some sort of locked down security zone.

sdooley
Champ in-the-making
Champ in-the-making
It comes back "false" when running from the web server

We are on a domain however when I set up the policies I didn't include anything that would cause this.

Security zone is set to Medium and I have put the Alfresco address in trusted sites