Web Hosting Talk







View Full Version : php.ini and .htaccess - session ids - 500 server error


original89
09-28-2004, 09:37 AM
hi

my websiste has just moved servers and the session ids have reappeared after i spent a while removing them.

originally i specified in the htacess.

php_value session.use_trans_sid 0

and this removed the id (or set it to a fixed amount)

My website has been moved by my host to a newer, bigger,better,faster server but the htaccess caused the entire
site to become unabvailable. I removed it and it started working but the sessions appeared.

the session only appear on first hit to the webpage then they disappear.

my host says the servers are different as

"php_value" and "php_flag" settings in .htaccess files are no longer recognised as your host server is running phpSuExec (which means that all php scripts are now run as your username instead of just the "nobody" user - which helps enhance security).

i looked up phpsusexec and this suggested using a php.ini file , but i dont know what syntax to use for php.ini if the php_value flag cannot be used.

any suggestions, as this has made my site google unfriendly.

original89
09-28-2004, 10:38 AM
okay i fixed it with

register_globals = On
session.use_trans_sid = 0

thanks anyway..

Burhan
09-28-2004, 11:45 AM
Might want to turn off register_globals, unless you really know what you are doing.

original89
09-28-2004, 12:07 PM
well you are right about the dont know what im doing, but its working so that aaaalright with me !

thanks though

Burhan
09-28-2004, 12:08 PM
Read http://www.php.net/manual/en/security.globals.php