httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57652] Contents of cookie are URL encoded using mod_log_config %{VARNAME}C
Date Tue, 03 Mar 2015 06:07:25 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=57652

--- Comment #3 from Geoff Millikan <gmillikan@t1shopper.com> ---
For posterity, this is PHP gotcha:

PHP's popular setcookie() function URL-encodes the cookie when pushing it out
to the client browser as the documentation says.  The corresponding function
session_id() both reads the cookie from the HTTP request headers AND
URL-decodes it.  The URL-decoding isn't mentioned in the PHP documentation.

Happy session handling,

--Geoff

https://php.net/manual/en/function.setcookie.php

https://php.net/manual/en/function.session-id.php

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message