Hello All,
I built a simple script to make a page cached in a user's browser for 2 hours (GMT Time).
<?php
$seconds_ahead = 7200 + time();
$gmt_plus_5 = gmdate( "D, d M Y H:i:s", $seconds_ahead );
header( "Expires: $gmt_plus_5 GMT" );
?>
Then I output the file named index.html.
<?php
$file = fopen("index.html", "r" );
while(!feof($file)) {
$buffer = fread($file, 4096);
print $buffer;
}
fclose( $file );
?>
The code works great and all but for some reason, the php code adds "?PHPSESSID=" followed by a long set of numbers and letters to all links on the page. It also seems to add a hidden <input> tag with the name "PHPSESSID" with the same set of numbers and letters in the value attribute in all <form> tags on the page. The funny thing is that if I refresh the page, the PHPSESSID stuff doesnt show up. Anyone have any suggestions because I dont want the PHPSESSID stuff to show up at all.