From:             [EMAIL PROTECTED]
Operating system: n/a
PHP version:      4.2.0
PHP Bug Type:     Feature/Change Request
Bug description:  setcookie()

setcookie() states "cookies must be sent before any other headers are sent
(this is a restriction of cookies, not PHP).

http://www.php.net/manual/en/function.setcookie.php

I would like to suggest this is a restriction of PHP, not cookies.

I can send and read cookies right in the middle of my HTML
when I use Javascript:
http://www.collegeSherbrooke.qc.ca/languesmodernes/cookie.htm

<script>

setCookie("TestCookie","first time",expdate);
var DisplayData = getCookie("TestCookie");
document.write(DisplayData);

document.write("<br>");

setCookie("TestCookie","second time",expdate);
var DisplayData = getCookie("TestCookie");
document.write(DisplayData);

</script>

When can we expect a feature change on setcookie() ?
-- 
Edit bug report at http://bugs.php.net/?id=17158&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17158&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17158&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17158&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17158&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17158&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17158&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17158&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17158&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17158&r=globals

Reply via email to