#32111 [Csd->WFx]: Cookies can also be separated by comma
| From: | sniper@php.net | Date: | Mon, 25 Apr 2005 21:21:13 +0000 |
| Subject: | #32111 [Csd->WFx]: Cookies can also be separated by comma | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78179@lists.php.net to get a copy of this message | ||
ID: 32111
Updated by: sniper@php.net
Reported By: daniel dot marcus at gmail dot com
-Status: Closed
+Status: Wont fix
Bug Type: Session related
Operating System: *
PHP Version: 4.*, 5.*
Assigned To: sniper
New Comment:
See bug #32827 for reasoning. (Nokia should fix their crappy phones..or
pay me very much.. :)
Previous Comments:
------------------------------------------------------------------------
[2005-04-23 22:34:43] sniper@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2005-02-28 16:59:12] daniel dot marcus at gmail dot com
Sorry Sniper. I rented some cellphones for testing my software and I
had to take it back.
Anyway I had some other problems. I decided no to use cookies, only for
the session cookie.
The problem was this: for every session cookie the phone (some nokias)
hold it twice and therefore the session cookie I got was:
PHPSESSID="6235123518263Ae4,PHPSESSID=6235123518263Ae4" and obviusly I
would get the error "Session can be only numbers, letters, etc,etc". I
decided to turn on trans_id in order to make it run on all phones but I
may have problems with security issues.
I don't believe it's a php bug only....but maybe it becames a bug in
conjunction with nokia browsers. It worked flawless with SonyEricsson,
Samsung, Panasonic,Siemens,Sagem and Motorola phones. So I won't blame
php for this problem and I won't ban nokia phones just for this. Hey!
come on...a lot of people use nokia.
Thanks Sniper just for answering.
------------------------------------------------------------------------
[2005-02-27 10:47:23] sniper@php.net
Can you please provide the full headers the client (the phone in this
case) sends?
------------------------------------------------------------------------
[2005-02-25 16:49:21] daniel dot marcus at gmail dot com
Description:
------------
The browser (nokia 3200 and others) sends the cookies in the form:
name="value",name2="value2"
instead of:
name="value";name2="value2"
In the first example above PHP will get only one cookie:
"name" with it's value set to: "value,name2=value2". So all the others
cookies are lost.
How can i fix this on php for windows?
session.save_handler = files
session.save_path ="C:\AppServ\php\session"
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_expire = 180
session.use_trans_sid = 0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32111&edit=1