|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-24 13:38 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 11:00:01 2025 UTC |
Description: ------------ I am trying to run Apache2 as a local host and I can get it to act as a server, it even does mysql ok. I cannot get it to set a cookie. It will set the phpsessonid which is a cookie. I don't know if its a fault of the product or a configuration issue. The following line of code is one cookie that I am trying to set. When I upload the page to my website it all works fine but as localhost its a no go. My website is on Apache 1.3.29. (note: from the code below $XdomainX is my full domain name where localy its localhost)(now I wonder if localhost is incorrect but I do have cookies from javascript localhost) non-bug info I have even tried to use 1.3.29 for localhost and I cannot use "method = post". I would like to test php pages from localhost and really don't care which Apache I use. Maybe an example of a working httpd.conf is what I need. I have 2 websites I need to test with so an example with virtual host would be nice. Reproduce code: --------------- $XdomainX="localhost"; $setadmin = setcookie("ULadmin","admin",time()+14400,"/",$XdomainX,0); Expected result: ---------------- in total there should be 5 cookies set Actual result: -------------- non user cookies set