Unwanted Session ID being added to URL's

Hi,

I am setting up a navigation menu on a new site im working on that is inking to *.php files. I have not added any php Session ID info to but for some reason when i click a link sometimes this will be appended.

http://www.mysite.com/test.php[B]?PHPSESSID=8b6b70d2bbc08b3e6bd5adb8d0450ab8[/B]

Here is my navigation menu:

<ul>
<li><a href="../test.php">HOME</a></li>
<li><a href="../online-farm/">ONLINE FARM</a></li>
<li><a href="../grown-locally/">GROWN LOCALLY</a></li>
<li><a href="../organic-food/">ORGANIC FOOD</a></li>
</ul>

I presume it must be some server issue but i dont know what i should be looking into about this? It seems to be very random, most of the time it doesn’t add the session id to the URL’s but every now and then it appears.

Anyone know what might be going on here?

Thanks!

The users that are affected have got the use of cookies disabled on their computer. In php.ini you can change the value of session.use_only_cookies to true (reboot the server after having saved the change) which will force all users to use cookies.

http://www.php.net/manual/en/session.configuration.php#ini.session.use-only-cookies

It hasn’t been released yet so it’s just me seeing this issue so far. I havent blocked cookies in the browser i have been testing in. I have just checked it in a few other browsers and it appears to happen whenever i open up a fresh instance of any browser. If i go to the homepage and then click any link the Session ID gets attached but disappears when i click on any subsequent links.

I’ve just been in contact with my Hosting company. It was the server that was attaching the Session ID’s. This can be switched off with .htaccess file, for anyone with this issue have a look at the solution here: