array to string conversion error when configure Cookie validation

Hi all,

When I try to configure Cookie validation in main.php (, the error "array to string conversion " is reported. What’s wrong with it? Can anybody help resolve it? Thanks!

Has anyone else tried it before?

Post your config and full error info please.

That’s the config content:

return array(







And the error:

Error 500

Array to string conversion

you can refer to the third one:3. Cookie Attack Prevention.

if you have some good idea,email to,thank you!

Enable YiiDebug in order to see all the stack trace.

Stack trace:

#0 D:\wwwroot\yii\framework\web\CController.php(278): SiteController->runAction()

#1 D:\wwwroot\yii\framework\web\CController.php(257): SiteController->runActionWithFilters()

#2 D:\wwwroot\yii\framework\web\CWebApplication.php(324): SiteController->run()

#3 D:\wwwroot\yii\framework\web\CWebApplication.php(121): CWebApplication->runController()

#4 D:\wwwroot\yii\framework\base\CApplication.php(135): CWebApplication->processRequest()

#5 D:\wwwroot\yii\35hui\index.php(11): CWebApplication->run()


2010/11/25 15:16:51 [error] [php] Array to string conversion (D:\wwwroot\yii\framework\base\CSecurityManager.php:249)