cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Romayev <roma...@yahoo.com>
Subject [flow] How to remove a permanent cookie?
Date Tue, 17 Aug 2004 18:57:30 GMT
Hello,

I'm trying to figure out how to remove a permanent
cookie using flow.  The following code does not work,
is there anything I'm doing wrong?

function logout(redirect) {
    var cookies = cocoon.request.getCookies();
    for (var i=0; i<cookies.length; i++) {
        var cookie = cookies[i];
        
        if (cookie.name == "mycookie") {
            cookie.maxAge = 0;
            cocoon.response.addCookie(cookie);
        }     
    }

    cocoon.redirectTo(redirect);
}

Thanks,
-Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message