Re: [PHP] Session cookie doesn't work

2007-11-26 Thread metastable
Hey Teck, If the session works when you append the session id to the URL, I would think that the session_save_path is ok and writable. You can assure yourself that it is indeed the case, by going to your session.save_path and checking out the contents of the session files there. Better practice

Re: [PHP] Session cookie doesn't work

2007-11-26 Thread Teck
Thanks Stijn for your advice. I wonder if my "session.save_path /var/lib/php4" is correct. Who should be the owner of the directory? Is there any permission settings I need to care about? I also consider "session.cookie_path /". After searching, it means cookies are avaiable for all the d

Re: [PHP] Session cookie doesn't work

2007-11-26 Thread metastable
Hey, Your session will expire, regardless of the call to session_set_cookie_params. If you're looking to propagate a session across time, you should look at keeping your session data in a database (google: session_set_save_handler, there's a good tutorial on the zend site), then calling a tab

[PHP] Session cookie doesn't work

2007-11-26 Thread Teck
Hi, I'm working to use cookie to maintain session data across multiple pages in PHP4.42. I have the following two scripts, where I think the second file outputs a data in a session variable. file 1 - test_1.php # Go next ## fi