PHP seems to be adding PHPSESSID to the querystring of every link on my website's homepage when a visitor first arrives. On subsequent clicks, the phpsessid goes away (presumably because cookies are then used to track session). Anyway, that initial querystring is a problem for search engines, which aren't crawling my links.
Can anybody tell me how to stop PHP from doing this, short of manually searching $HTTP_USER_AGENT and preventing session use when search engines come a'crawlin'?