Welcome to WebmasterWorld Guest from 54.167.174.11

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP session.auto_start "on" on server

How can I work around it?

   
11:21 am on May 8, 2003 (gmt 0)

10+ Year Member



I chose minibb for my forum because it doesn't use PHP session IDs that might interfere with Google indexing. But my host has session.auto_start set to "on" (heaven knows why) and now my forums have unwieldy urls like:
href="index.php?action=vtopic&forum=1&PHPSESSID=eaee77a062cebc017a708b9212c81772"

Is there anything I can do to avoid this in my PHP code or even with the mighty .htaccess. I wasn't thinking of rewriting the urls, but somehow turning off the session.auto_start for my pages.

Any help would be very welcome.

11:47 am on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Put this..
<IfModule mod_php4.c>
php_value session.auto_start 0
</IfModule>

in your .htaccess file.
12:04 pm on May 8, 2003 (gmt 0)

10+ Year Member



Yeah! Thanks, grahamstewart.