php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28133 cookie won't set after session cookie
Submitted: 2004-04-24 05:27 UTC Modified: 2004-04-24 13:38 UTC
From: jvelguth at interaccess dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.6 OS: win 2k
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jvelguth at interaccess dot com
New email:
PHP Version: OS:

 

 [2004-04-24 05:27 UTC] jvelguth at interaccess dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-24 13:38 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 17:01:31 2024 UTC