Additional info:

* Problem happens when "domain" part of cookie is set. i.e. in PHP: 
setcookie(name, value, expire, path, domain); the domain part must not be left 
out.
* When the domain part is left out, the problem does not occur.

** Description changed:

  Binary package hint: firefox-3.0
  
  Opening a website located at http://localhost/something.php that gives a
- cookie has its cookie ignored by Firefox.
+ cookie has its cookie ignored by Firefox. Also occurs for host that does
+ not have dot:
+ 
+ http://hostname/something.php
  
  The result is logins etc. which require a cookie to work, do not work.
  
  The exact same website, when opened using:
  
  http://127.0.0.1/something.php
- http://hostname/something.php
- http://hostname.local/something.php
+ http://hostname.custom/something.php         # hostname points to 127.0.1.1
+ http://hostname.local/something.php         # hostname points to 192.168.0.x
  
  has its cookies saved and loaded properly by Firefox. For some reason
- Firefox is "blocking" localhost (only).
+ Firefox is "blocking" localhost or any hostname without dot.
  
  I have empty cookie exceptions list on my Firefox preferences. Adding
  "localhost" and setting it as "enable" (always accept) does not work.
  
  This only happens on Firefox. Using Konqueror, text-mode ELinks, to browse 
the site (in all 4 URL variants) works properly (with regard to cookies).
  ____
  
  For reference, currently my /etc/hosts is:
  
  127.0.0.1       localhost
- 127.0.1.1       caliva www.melinda.com
+ 127.0.1.1       caliva
  
  # The following lines are desirable for IPv6 capable hosts
  ::1     localhost ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  ff02::3 ip6-allhosts

-- 
Firefox does not set cookies for http://localhost
https://bugs.launchpad.net/bugs/325266
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to