I am trying to use sessions with a basic hit counter to track if a user has hit a page or not.
I basically have:
That works just fine... my problem is it makes all of my links within the page look like this:
/index.php?pg=news&YourVisitID=e35f0de42641be1f654ac4cc37201382
How can I make it not list &YourVisitID with all of that after it?
Thanks,
-Jon
I basically have:
Code:
session_name ('YourVisitID');
session_start(); // Start the session.
$mysession='news';
$myupdate="UPDATE counter SET count=(count + 1) WHERE countid=4";
mysql_query($myupdate);
session_register($mysession);
That works just fine... my problem is it makes all of my links within the page look like this:
/index.php?pg=news&YourVisitID=e35f0de42641be1f654ac4cc37201382
How can I make it not list &YourVisitID with all of that after it?
Thanks,
-Jon