|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-10-04 14:17 UTC] mash at sha-mash dot de
Description: ------------ --- From manual page: http://www.php.net/function.setcookie --- I have been searching for an hour why my cookie was not set by setcookie('user',$value,time()+3600,'/',$SITENAME,0,0); where $SITENAME equals 'www.qmd.test/' until I figured out that the trailing slash prevents the cookie from being set. Maybe this would be helpful to insert into the documentation part of this parameter (domain). Keep up the good work and Thanks for your work -m*sh- PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 21:00:01 2026 UTC |
the documentation already, clearly, tell you to use domain name. even an example is provided, and it is not containing trailing slash. try execute this line to more understanding which part is which from an URL print_r(parse_url("http://gabri:1234@google.com:80/my/document.html"));