|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-13 00:56 UTC] jani@php.net
[2009-05-13 06:27 UTC] stephan dot schulze at kapthon dot com
[2009-05-14 09:03 UTC] stephan dot schulze at kapthon dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
Description: ------------ setcookie does not set a cookie when a cookie is set in .htaccess file first I do not know whether this is a bug or expected behaviour Reproduce code: --------------- .htaccess Code ============== <FilesMatch "\.(html|htm|xml|txt|php)$"> SetEnvIf Cookie "^.*testcookie.*$" cookie_set=1 Header set Set-Cookie: "testcookie=1; path=/;" env=!cookie_set </FilesMatch> Cookie is set here PHP-Code ======== setcookie('testphp', 'test_' . time()); in index.php => cookie is not set Expected result: ---------------- "testcookie" AND "testphp"-Cookie should be set Actual result: -------------- Only "testcookie" is set,any calls to setcookie does not set any cookie at all