注销时不删除Yii cookie

I am using the Yii framework and I currently have a problem where on logout, the associated cookie does not seem to be deleted. This only seems to occur when the user has selected "remember me". This is causing users to automatically log in again, after logging out.

I'm working on a dating site, so this is quite a big problem as people may visit while at internet cafe's etc.

I have not changed the default logout method, but have changed the session in config. I have configured as following, to allow sessions to be carried across our multiple servers and services.

'session' => array(
    'class' => 'system.web.CDbHttpSession',
    'connectionID' => 'db',
    'autoCreateSessionTable' => false,
    'sessionName' => 'name', // renamed for privacy
    'cookieMode' => 'allow',
    'cookieParams' => array(
        'path' => '/',
        'domain' => '.domain.com', // renamed for privacy
        'httpOnly' => false,
    ),
),

I can't seem to find a solution for this, nor anyone with a similar problem.

Wondering if anyone has any idea what's going on.

If you want to disable this functionality completely you need to set AllowAutoLogin to false for CWebUser.

See the API reference here

http://www.yiiframework.com/doc/api/1.1/CWebUser#allowAutoLogin-detail

The default value is false, so I'm assuming this has been set to to true somewhere in your configuration file.