I'm having a problem with session IDs being intermittently inserted into the URLs on my site. I have tried to correct this with some ini_set calls, but it doesn't seem to help.
The first line in every one of my PHP files includes a header file. The first thing I do in my header file is set the include path. The very next thing I do is the following:
ini_set("session.use_cookies", true);
ini_set("session.use_only_cookies", true);
ini_set("session.use_trans_sid", false);
For some reason, though, I still sometimes have PHPSESSID inserted into my URLs. I think this only happens on the first page you view when visiting my site; navigating to a new page or refreshing seems to make it go away.
I am on shared hosting, so I don't have access to my php.ini file. Any other solutions?