View Single Post
Old 12-11-2002, 07:56 PM  
Rory
Confirmed User
 
Join Date: Jul 2002
Location: I Love Ixtapa, Mexico ö
Posts: 616
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
Rory is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote