After login, if I print_r() the session in the default site controller i can see all the values. But when i redirect to the next page I lose the session.
This problem occurs only on the live environment. On the test server everything is working fine.
I have also attached some images of my php session config on the live and test environments.
Thank you for your reply. I tried your suggestions but it still wont work.
I think the /var/php_sessions directory is writable because the session is being set on the first page. It’s only when I redirect the page that the session is empty.
Hmm. Do you maybe logout() a user somewhere? Because then the session will be cleared. Besides that, i would experiment with $_SESSION a little to find out, wether it’s a problem with your PHP installation or your Yii session configuration.