RE: [PHP] Error with Cookies and SSI
| From: | DanO | Date: | Tue, 06 Feb 2001 21:02:58 +0000 |
| Subject: | RE: [PHP] Error with Cookies and SSI | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38431@lists.php.net to get a copy of this message | ||
sounds like your php script cannot write to the header, which means you'll
have to set cookies (gasp!) client-side.
there are some handy javascript cookie libraries that can make this much
easier on you.
such as:
http://hotwired.lycos.com/webmonkey/javascript/code_library/wm_ckie_lib/
fear not the javascript. it is your friend.
DanO
-----Original Message-----
From: Ben Wiechman [mailto:neteru@aminal.net]
Sent: Tuesday, February 06, 2001 12:57 PM
To: php-general@lists.php.net
Subject: [PHP] Error with Cookies and SSI
I am having a problem getting a php script to read a cookie that should be
set.
I have to incorporate the output of a php script into an existing page that
uses SSI to do a virtual include of my php script.
i.e. <!--#include virtual="script.php" --> Problem is, when I do this, the
script does not set the cookie variables. If I just run the script the
cookies are set, and read, correctly, but when I include the PHP script with
the SSI call it does not read the cookie variables for some reason.
Does anyone know a work-around for this? And using a std php script is not
an option, I need a way to get this to work using SSI.
Any help would be greatly appreciated.
Thanks in advance, Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net