Sessions and W3C standards compliance
Posted: Thu Nov 27, 2003 5:57 pm
Here's the situation, I use session variables to remember which stylesheet a user has selected, and if no session already exists, the server adds "?PHPSESSID=(id)" to the ends of all my links. The problem occurs when the link already has a variable in it, and becomes something like this:
page.php?p=home&PHPSESSID=(id)
The "&" character is illegal in XHTML1.1, and this causes my pages not to validate. Does anybody know a way to change what the server inserts on the links?
page.php?p=home&PHPSESSID=(id)
The "&" character is illegal in XHTML1.1, and this causes my pages not to validate. Does anybody know a way to change what the server inserts on the links?