Hi, I am having a small problem with sessions.
On the first page of a web site, I give people the choice between the french and english page. Now since I want to log the http_referer and carry it through the web page, I start a session, and save the $_SERVER['http_referer'] into a session variable. This code is at the very beginning of my first page:
<?php
session_start();
$SESSION['CLIENT_HTTP_REFERER']=$SERVER['HTTP_REFERER'];
?>
Now the problem I am having with this, is that on the first view of this page, the session id gets added (in a 'get' style) into the links to my french/english pages. Here's an example of the href url:
http://www.YYYYYYYYY.net/fr/?PHPSESSID=ac92dc1300c2d59fb79167dfd1f527ef
Now, since I link into a frameset type page, the ?PHPSESSIONID stays there for the entire view of the web page, which looks very goofy.
How the hell does this happen, and how can I prevent this from happening? (My browser is mozilla 1.7.2 with the option ACCEPT ALL COOKIES, so I don't understand why it can't pass the session_id as a cookie).
Thanks in advance,
Jd