Page 1 of 1

Session is not working on remote server

Posted: Wed Mar 14, 2012 9:42 am
by flosky
Hi everybody,

I am developing a website with the CakePhp 2.0 framework.
On my machine (Fedora 16, apache2, mysql, php5) everything is working fine. I can tell cake to save my session data in the database, so when I want to use load balancing this will still work.
When I upload the project to a test server on the web (Ubuntu 10.4, apache2, php5) there is no session data at all saved to the database. I do have a session cookie though and I can read from and write to database.
I let the php settings untouched. When I check phpinfo(); on both machines everything looks the same. Sessions are definately enabled. The source code is also the same since I just pull it from the central git repo.

Is there anything else that could mess this up?? Read/Write permissions, php settings, database settings???

Any ideas would be greatly appretiated!

Thanks,
flosky

Re: Session is not working on remote server

Posted: Wed Mar 14, 2012 4:27 pm
by Christopher
Is the session handler using files or a database? Have you verified that sessions are working at all on that server with a simple test script?