From:             jvelguth at interaccess dot com
Operating system: win 2k
PHP version:      4.3.6
PHP Bug Type:     Apache2 related
Bug description:  cookie won't set after session cookie

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

-- 
Edit bug report at http://bugs.php.net/?id=28133&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28133&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28133&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28133&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28133&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28133&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28133&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28133&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28133&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28133&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28133&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28133&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28133&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28133&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28133&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28133&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28133&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28133&r=float

Reply via email to