Yii Framework Forum: Database Driven Sessions And Php 5.4 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Database Driven Sessions And Php 5.4 Not working ? Rate Topic: -----

#1 User is offline   Ziggi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 86
  • Joined: 14-August 12

Posted 14 October 2012 - 11:14 AM

Hmm,

This is from my "components" section:

'db'=>array(
'class' => 'CDbConnection',
'connectionString' => 'mysql:host=localhost;dbname=yii_test',
'emulatePrepare' => true,
'username' => 'root',
'password' => '******',
'charset' => 'utf8',
),

'session' => array (
'sessionName' => 'YiiSession',
'class' => 'CDbHttpSession',
'autoCreateSessionTable' => true,
'connectionID' => 'db',
'sessionTableName' => 'YiiSession',
'useTransparentSessionID' => ($_POST['PHPSESSID']) ? true : false,
'autoStart' => 'false',
'cookieMode' => 'only',
'timeout' => 300,
),

This used to work but recently I updated to PHP 5.4 on my localhost and I can observe a problem:

The page does not load ("Connection was reset" on Firefox with "500 Internal Server Error" detected with Firebug).

So, the question is:

Does CDbHttpSession really implements SessionHandlerInterface what is necessary in case of PHP 5.4 ???

Is CHttpSession::open() compatible with SessionHandlerInterface::open($save_path, $session_name) ???

Any comment on that?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users