Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appfog Cakephp Session Object lost on refresh or redirect

I just migrated my app to appfog. I store the session info in the database. But the session is lost after page refresh or on redirect. I am using cakephp 2.2.3, the app works fine on local machine and namecheap servers. On Appfog, I deleted all stored sessions in session table in database. So when I login a new records are created. When session info is available onlogin, but is lost on refresh or on redirect.

I appreciate any help.

like image 498
Leah Collins Avatar asked Nov 17 '25 14:11

Leah Collins


1 Answers

in your core.php you have to set your session.start to true

Configure::write('Session.start', true);
like image 157
MOHA Avatar answered Nov 19 '25 05:11

MOHA



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!