1

I use CDbHttpSession for store user's sessions.

'session' => array(
    'class'=>'system.web.CDbHttpSession',
    'connectionID'=>'db',
    'autoCreateSessionTable' => false,
    'sessionTableName' => 'sessions'
),

Database has table sessions, where store sessions data. On my local server session data like this:

prfrp__id|s:1:"1";prfrp__name|s:17:"me@example.com";prfrpemail|s:17:"me@example.com";prfrpactivateStatus|s:1:"1";prfrp__states|a:2:{s:5:"email";b:1;s:14:"activateStatus";b:1;}

But on the application server session data string like this:

mOfOIHV7olQLvP3xR4Z-972ijv00x_qSTAgkCPiAuxKR0kCNrSID1RsmX5h3oCbjUi0HIfdVBxAH1gOTQc26ewexrEVCyh8jYlnP2vG1v_C_9hXLRKrASx8Cu_6cEsj9opCBNnqC0wkgFagKfT5t9-R-HcbnObL0b1CadQGJrCLxUvjQScyg6NZzEYXB32cndGHIGiIbEC5ugmISCia8Zfxze6Hba-OfmU9VQ_7lc2KvSUKbfXDH41cNltvGWlDmmKT3E6DXlnLIF9H3hFRt5g..

I use Yii 1.1.14.

Tell me please, where can be problem?

1 Answer 1

1

On your application server, do you have Suhosin turned on? I've had issues with it causing issues with DB stored sessions in the past.

1
  • than you very much! I disabled suhosin, and all work ok.
    – J Sorel
    Oct 2, 2014 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.