glogglog

login to sohu passport while firefox cookie disabled

If you disabled cookie in firefox3, you can not login to sohu passport include chinaren, even if you add chinaren.com and sohu.com to cookie-allow list.

Here is one walkaround:

run js below in firebug console:

function checkCookieEnabled(){return true}

then click "login" button.

Detail(you can skip):

sohu passport use a function like this to check if cookie is enabled in current browser:

function checkCookieEnabled(){try{if(navigator.cookieEnabled==false){return false}}catch(e){}return true}


But if you disable cookie in browser level, and white-list one site, the navigator.cookieEnabled still return false, which is reported as bug 230350 of firefox. This bug was reported first at 2004-01-07, and is still exists in recent version of 3.0.1.



Tags: cookie | firefox | sohu |
sevenever@gmail.com
Copyright © 2008. All rights reserved.