php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37364 Login with cookies works with firefox but not with IE
Submitted: 2006-05-08 11:33 UTC Modified: 2006-05-10 16:22 UTC
From: blunt_bill at hotmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.4 OS: Slackware 10.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: blunt_bill at hotmail dot com
New email:
PHP Version: OS:

 

 [2006-05-08 11:33 UTC] blunt_bill at hotmail dot com
Description:
------------
I use cookie authentication a page to allow administration to users.
The problem is when i try to login with Internet explorer (different machines, all operating with MSIE 6 and windows XP). The cookies are not set (when i access temporary internet files the files with the cookie contents are not created).
If i try to login with firefox the cookies are written and work 100%.
I tried to use setcookie() and setrawcookie().

My PHP version is 5.0.5 from linuxpackages.net, Apache2 and apache2php from there too.

Reproduce code:
---------------
setrawcookie('admin-user', $username, time()+$expiry, "/", false, 0);
setrawcookie('admin-pass', $password, time()+$expiry, "/", false, 0);

Expected result:
----------------
cookies should be set with both browsers (IE and firefox)

Actual result:
--------------
firefox cookies are set, IE cookies are not.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-08 11:43 UTC] bjori@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 [2006-05-10 15:41 UTC] blunt_bill at hotmail dot com
I've updated to php 5.1.4.
the problems persists...
I don't understand...

And now I have another problem:
I have a domain of the type: domain.net
Because my IP is dynamic, I have another domain which is of the type domain.dnsalias.org.
Until this morning (when i installed the new version of php), whenever I typed an adress like domain.net/~someuser/index.php, the URL was processed to domain.dnsalias.org/~someuser/index.php, this address showed up in the browser URL path and the correct page was displayed.

Now if I type domain.net/~someuser/index.php, the URL that shows up in the browser is just domain.dnsalias.org/ and my welcome page is displayed instead of the correct one. To check if the site was working, I tried to type directly domain.dnsalias.org/~someuser/index.php and it worked. Since this works and I haven't changed anything in my both accounts, i assume the problem is due to something in the php version...

I just don't know what.

Thank you for your time.
 [2006-05-10 15:44 UTC] tony2001@php.net
Your browser issues are definitely not related to PHP.
Please complain to browser developers instead.
 [2006-05-10 15:52 UTC] blunt_bill at hotmail dot com
Ok, so I'll make myself a litlle clearer: I've tested my server configuration in more or less 10 different machines. All the authentications work if Firefox is used and fail if IE is used. If you want, You can send me a file made by you with your authentication method and cookie creation, I'll upload it to my server and you can try it yourself...

thank you
 [2006-05-10 15:52 UTC] blunt_bill at hotmail dot com
sorry i forgot to put it open again...
 [2006-05-10 16:08 UTC] tony2001@php.net
PHP works on serverside and it has nothing to do with IE problems, as there is no PHP for IE, only HTML and headers.
Please complain to Mickeysoft.
 [2006-05-10 16:15 UTC] blunt_bill at hotmail dot com
but isn't the cookie responde different in php from borwser to browser? Like keepalive ant other properties that are not the same throughout browsers?

the truth is that I had php4.4 and it worked like a charm and when i updated to php5.0.5 it stopped working. i did not update the browsers in the machines where i tested...
 [2006-05-10 16:22 UTC] tony2001@php.net
>but isn't the cookie responde different in php from borwser to browser?
PHP knows nothing about browsers.
Please stop reopening this bogus report.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 10 13:01:34 2025 UTC