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:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 12:57 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to