I am using cakephp 2.0 in My Users controller i am setting a SESSION in login action using
$this->Session->write('Users',$value);
once session set it will redirect to next action named home. In login action its working I logged and checked the value, but after the redirect I read the session value by using the following in home action
$this->log($this->Session->read('Users'));
nothing displayed. But its working fine in local server.
Please check the following things on your server.
?> if any please remove.And then try.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With