开发者

Yii - Auth issues: Can't login via Chrome

I'm facing really strange issue with my app powered by Yii framework.

Basically, I can't login any user using Google Chrome (v.12, Linux 64bit).

I'm able to login via FF, IE, Opera but not via Chrome.

I presume that there's something wrong with session/cookies, but what? Does anybody faced similar issue before?

I store sessions in db. My config:

'session' => array(
            'autoStart' => true,
            'class' => 'CDbHttpSession',
            'connectionID' => 'db',
            'sessionTableName' => 'Sessions'
        ),
'user'=>array(
            'class' => 'WebUser',
            'allowA开发者_如何转开发utoLogin' => false,
        ),
'authManager'=>array(
            'class'=>'CDbAuthManager',
),  

Edit

I noticed funny thing: when I allow users to autoLogin via cookie by setting 'allowAutoLogin' => true, it works. But, when the checkbox is not checked it doesn't. Weird.

Edit II

Tried to downgrade/upgrade my Chrome installation to make sure it's related to the browser. The issue still exists.


Issue solved.

There was some incompatibility issues with yii-debug-toolbar extension. After disabling it, everything works perfectly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜