Quick PHP tip. I've seen lots of people run into this: if you're using PHP sessions, depending on how your copy of PHP is configured you'll get URLs that look like this: "http://domain.com/?PHPSESSID=1bf25e86558f71d0cab893a2ecdd7327". This is PHP doing URL-rewriting for you to propagate the session id.
To turn it off use the following line at the top of your script:
ini_set("session.use_trans_sid", "0");
You'll typically get URLs like that the first time you go to a site, and then when you start clicking on links it goes away. The reason is that the first time you go to the site, PHP creates a session. However, since your browser didn't send back a cookie containing the session id for that request, PHP doesn't know whether your browser has cookies turned off or whether it's just the first time you're coming to the site. So if you're configured to do url-rewriting, PHP does the "safe" thing and rewrites your urls so that the session id gets propagated.
The next page you go to on the site, your browser will send the cookie back to the server, and PHP will realize that your browser is using cookies to pass the session id, so it will stop rewriting your URLs, and everything will look normal.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):