Cakephp After the redirection session does not work on Live Server


I am using cakephp 2.0 in My Users controller i am setting a SESSION in login action using


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


nothing displayed. But its working fine in local server.

Please check the following things on your server.

  • Check your php.ini file whether session is enabled or not.
  • session.cookie.domain is set to your server or not.
  • Check for your php files having any blank lines after ?> if any please remove.

And then try.