thyseus / yii-user-management

a user management module collection for the yii framework
186 stars 122 forks source link

Hybridauth wiht CDbHttpSession doesn't work #162

Open chuqing8086 opened 10 years ago

chuqing8086 commented 10 years ago

I intalled latest yum, the follwoing is my settings: In php.ini: session.save_handler = user

In protected/main.php: 'session' => array( 'class' => 'system.web.CDbHttpSession', 'connectionID' => 'db', 'sessionTableName' => 'yiisession', ),

I followed the user/doc/hybridauth.txt to set up hybridauth.

But I got the following error: Warning: session_start(): user session functions not defined in ...\protected\modules\user\vendors\hybridauth\Hybrid\Storage.php on line 17

Fatal error: session_start(): Failed to initialize storage module: user (path: ) in ...\protected\modules\user\vendors\hybridauth\Hybrid\Storage.php on line 17

I think the reason is Hybridauth require session.save_handler = files. But how to fix this error if I don't set "session.save_handler = files" in php.ini?

Thanks in advance!