Quote:
Originally posted by Backov
Very easy (you should have just asked me again Mag)
You don't have to. Ignore the code above, again.
Do this:
echo "<a href='blah.php?'" .SID. ">";
SID is the session ID, and it will only be appended if it's needed (ie, user doesn't have cookies enabled.) Remember, it's not $SID - it's SID.
Cheers,
Backov
|
Sorry didnt mean to confuse anyone. I misread his post and didnt see the session part before cookie. As Backov said you shouldnt rely on cookies when tracking sessions anyhow ... especially with a built in constant. Above would be how to detect if the user has cookies enabled or not however
Rory