The W3 Validator doesn’t validate PHPSESSID?
Posted by Saulo on September 28th, 2006 in Technology.
Are you getting the following error from the W3C validator?
cannot generate system identifier for general entity “PHPSESSID”
This is because you are using sessions on your website and PHP adds the session ID to links on your page. If the URL already has a GET parameter, &PHPSESSID is added at the end. However, the correct code would be &PHPSESSID since for the validator the ampersand means that you are refering to a HTML entity. A quick way to fix this is to turn on the option arg_separator.output in php.ini. If you don’t have access to that file, you can use the following directive in a .htaccess file:
php_value arg_separator.output "&"







Leave a comment