PHP is a server-side language and as such it deals with server-side
issues.  If you want to write javascript that sets a client-side
Javascript cookie, go ahead.  It has nothing to do with PHP and PHP will
certainly not get in your way.

-Rasmus

On Sat, 11 May 2002, jtjohnston wrote:

> This is a bug "Feature/Change Request" I made to:
> http://bugs.php.net/bug.php?id=17158
>
> setcookie() states "cookies must be sent before any other headers
> are sent (this is a restriction of cookies, not PHP).
>
> I argue this is a restriction of PHP, not cookies.
>
> Here is my proof:
>
> http://www.collegeSherbrooke.qc.ca/languesmodernes/cookie.htm
>
> I can do this any time in <body> :
>
> <script>
>    setCookie("TestCookie","first time",expdate);
>    var DisplayData = getCookie("TestCookie");
>    document.write(DisplayData);
>    setCookie("TestCookie","second time",expdate);
>    var DisplayData = getCookie("TestCookie");
>    document.write(DisplayData);
>  </script>
>
> I want to be able to setcookie() anytime I want, before and after I
> declare any HTML.
> This will never get changed, unless we ask for it.
>
> I would appreciate your vote of support at:
>
> http://bugs.php.net/bug.php?id=17158
>
> before the bug people "close" this thread.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to