|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11478 setcookie with time problem
Submitted: 2001-06-13 21:12 UTC Modified: 2001-07-22 13:14 UTC
From: taitg at digitalimagination dot com Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.5 OS: freeBSD 4.2
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: taitg at digitalimagination dot com
New email:
PHP Version: OS:


 [2001-06-13 21:12 UTC] taitg at digitalimagination dot com
When sending a cookie and using the time to expire in it the cookie wil not show but PHP thinks it was delivered (from a logical statement). 
config line:   
./configure --enable-track-vars --with-mysql --with-apxs=/usr/local/apache/bin/apxs
Server setup Freebsd 4.2, mysql 3.23, Apache 1.14-i386 build_freeBSD, php 4.0.5


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-13 23:00 UTC]
This is not bug and this place is not the correct place
to ask support questions.

 [2001-06-14 02:03 UTC] taitg at digitalimagination dot com
Let me clarify and you can tell if this is not a bug. PHP is suppossed to declare cookies based of the NS cookie standard. 

I have a situation where if I set a cookie as:

setcookie("test", "value");

It works

If I set it just like php says it is set (based on these standards):
int setcookie (string name [, string value [, int expire [, string path [, string domain [, int secure]]]]])

setcookie("test", "value", time()+15000, "/", "");

Then the cookie does not exsist. I have tested it off of Linux and it has been fine as the same format, same Apache server, same version of PHP. Am I way over stepping my boundries here or would you call that a bug?

 [2001-06-19 08:29 UTC]
Please add a complete but short example script into
this report which can be used to reproduce this problem.

And I assume you know that if you use the path / host
the cookies are visible on only that path and host.

Also, many browsers handle them differently. 
So please include the browser and version into this
bug report with which you get this.


 [2001-07-22 13:14 UTC]
no feedback after 35+ days.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Aug 04 17:23:22 2021 UTC