I was testing a request for a client, and noticed a problem with this configuration.
I understand that we can't use php_value flags in the .htaccess file because PHP is running as CGI rather than ISAPI. It is also said that you can use a php.ini file in each of the directories that php scripts use, if you need a different user configuration.
Our client has a blog site, and keeps getting randomly logged out. It appears that the sessions are timing out. The default set up says that a session should last 24 minutes and there is a 1% chance of garbage collection running for each php pageload. They wanted to experiment with extending the timeout setting.
I tried putting a php.ini file in my public_html directory and some sub directories, and it broke the site. Several database errors. Even when all of the content was removed from the php.ini file, the site still had errors. Deleting the php.ini file fixed the problem (on my site).
I have read reports of the random session expiry on other hosts and they seemed to be because of PHP 4.3.3 . However on our server I see that we are running PHP 4.3.4, which is supposed to fix that bug.
Does anyone have any thoughts on either the random session expiry, or why an empty php.ini file would cause errors on a site?
I understand that we can't use php_value flags in the .htaccess file because PHP is running as CGI rather than ISAPI. It is also said that you can use a php.ini file in each of the directories that php scripts use, if you need a different user configuration.
Our client has a blog site, and keeps getting randomly logged out. It appears that the sessions are timing out. The default set up says that a session should last 24 minutes and there is a 1% chance of garbage collection running for each php pageload. They wanted to experiment with extending the timeout setting.
I tried putting a php.ini file in my public_html directory and some sub directories, and it broke the site. Several database errors. Even when all of the content was removed from the php.ini file, the site still had errors. Deleting the php.ini file fixed the problem (on my site).
I have read reports of the random session expiry on other hosts and they seemed to be because of PHP 4.3.3 . However on our server I see that we are running PHP 4.3.4, which is supposed to fix that bug.
Does anyone have any thoughts on either the random session expiry, or why an empty php.ini file would cause errors on a site?
Comment