![]() |
PHP problem with ini_set.....help please =)
I have these lines in my page:
ini_set('session.name','z'); ini_set('session.use_cookies',0); ini_set('session.gc_maxlifetime',3600); ini_set('session.gc_probability',100); ini_set('session.use_trans_sid',1); and if I show phpinfo, they are all reflected in the 'Local' values except the use_trans_sid....I've tried it as 1, true, 'On',....but it remains set to value 'off' in phpinfo ??? Anyone have any ideas how to resolve this issue? PHP version 4.3.8 running on FreeBSD 4.10 |
just change it in php.ini
|
http://bugs.php.net/bug.php?id=28991
session.use_trans_sid is PHP_INI_DIR for PHP 4 and PHP_INI_ALL for PHP 5. |
Ooooops silly me this page was on a new demo server that had been compiled without enableing trans sid :)
As for the suggestion to edit it in php.ini, I prefer not touching my php.ini as different projects have diff settings requirements and I'd also have to change it on 15 webservers...... I think once I recompile PHP to enable it, should work fine |
No, you can only set that particular var with ini_set from version 5, it doesn't work in 4.
|
Quote:
|
Quote:
strange |
more often then not it's easier to use a .htaccess to set php settings (it's always good when things like register globals, session settings, etc.. are configured BEFORE the page is being executed)
php_flag <name> <value> for boolean and php_value <name> <value> for others |
All times are GMT -7. The time now is 09:56 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123