Bug #11478 Updated: setcookie with time problem
| From: | andy@php.net | Date: | Sun, 22 Jul 2001 17:14:16 +0000 |
| Subject: | Bug #11478 Updated: setcookie with time problem | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60644@lists.php.net to get a copy of this message | ||
ID: 11478
Updated by: andy
Reported By: taitg@digitalimagination.com
Old Status: Feedback
Status: Closed
Bug Type: HTTP related
Operating System: freeBSD 4.2
PHP Version: 4.0.5
New Comment:
no feedback after 35+ days.
Previous Comments:
------------------------------------------------------------------------
[2001-06-19 08:29:04] sniper@php.net
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.
--Jani
------------------------------------------------------------------------
[2001-06-14 02:03:12] taitg@digitalimagination.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.
http://developer.netscape.com:80/docs/manuals/js/client/jsguide/cookies.htm
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, "/",
".mysite.com");
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?
--Tait
------------------------------------------------------------------------
[2001-06-13 23:00:50] sniper@php.net
This is not bug and this place is not the correct place
to ask support questions.
------------------------------------------------------------------------
[2001-06-13 21:12:26] taitg@digitalimagination.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
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=11478&edit=1