Re: session id contains illegal characters
| From: | Chris Shiflett | Date: | Fri, 27 Oct 2006 14:41:01 +0000 |
| Subject: | Re: session id contains illegal characters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243748@lists.php.net to get a copy of this message | ||
Patrick Aljord wrote:
> I'm moving my page from php4 to php5 and I get this error:
> Warning: Unknown: The session id contains illegal characters,
> valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on
> line 0
Can you check to see what session identifier the browser is sending when
you get this error message? PHP's session identifiers should only
contain hexadecimal characters (a subset of alphanumerics).
This check was added to protect against people trying to use the session
identifier as an attack vector, sending a malicious payload instead of a
real session identifier.
Hope that helps.
Chris
--
Chris Shiflett
http://shiflett.org/