Closed Bug 246777 Opened 21 years ago Closed 21 years ago

Cookie header not send after "Location: _some_url_" header

Categories

(Core :: Networking: Cookies, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: awes, Assigned: darin.moz)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7) Gecko/20040608 Firefox/0.8.0+ Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7) Gecko/20040608 Firefox/0.8.0+ After "Location: xxxxx" cookies are not sent (in some rare cases i guess). Reproducible: Always Steps to Reproduce: 1. http://retman.pl/log/t.php 2. refresh to see that cookie have been set. 3. click redirect link 4. see that cookie have been lost I couldn't reproduce it on *any* other server or even different domain on this server. Script works fine on Mozilla (Build ID 2004031616) and IE. files contents: t.php ---------------- <? setcookie("test_cookie", "cookie_value", time()+3600, '/'); echo '$_COOKIE: <br>'; print_r($_COOKIE); ?> <br><br><a href="redir.php">redirect</a> poka.php ---------------- <? echo '$_COOKIE: <br>'; print_r($_COOKIE); ?> redir.php ---------------- <? header("Location: http://www.retman.pl/poka.php"); ?> Actual Results: See that cookie was not sent via http request Expected Results: Cookie should be send Tested on two different machines: -Win98SE + Firefox 0.8 -Win98SE + Firefox 0.9 RC1
You redirect to a different domain, and the cookie doesn't have an explicit domain set. So, (iirc), it wil be a host-conly cookie. Those cookies aren't send to other domains. If I go to http://www.retman.pl/log/t.php, it works.
Assignee: firefox → darin
Component: General → Networking: Cookies
Product: Firefox → Browser
QA Contact: firefox.general → core.networking.cookies
Version: unspecified → Trunk
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
V/fixed.
Status: RESOLVED → VERIFIED
QA Contact: core.networking.cookies → benc
You need to log in before you can comment on or make changes to this bug.