|
Posted by David Dorward on July 27, 2005, 7:59 am
Please log in for more thread options
Mathias Clarstedt wrote:
> Trying to validate my site but I get some weird error messages. Every
> link I have on the page gets added with server phpsessid when
> http://validator.w3.org/ is trying to validate my page.
The validator does not accept cookies, so your PHP session handling is
falling back to query strings and hidden inputs.
> There is two problems with this involuntary add of phpsessid in every
> link I have on my page! One is that my page is never going to be
> approved because the missing ampersand
Configure PHP correctly, the authors of it won't.
http://www.w3.org/QA/2005/04/php-session
> and second is that it is adding
> this id and Im a bit scare that this is a security problem on my server.
You have to balance the risk of leaking the session id with the usability of
not requiring the user to accept cookies.
If security was a real issue then you should be using SSL, and you wouldn't
need to worry about the session id being leaked - at least through the
referer, which is about the only place it can be grabbed from short of the
user copy/pasting the URL (which, if the information needed to be kept
secure, there probably wouldn't be much point in them doing).
> I really dont know what to do about it. Could this be a bug in the
> validator?
No.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/> Home is where the ~/.bashrc is
|