LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Is there any way to use cookies with SSI? (https://www.linuxquestions.org/questions/programming-9/is-there-any-way-to-use-cookies-with-ssi-163040/)

Electrode 03-27-2004 11:09 AM

Is there any way to use cookies with SSI?
 
The front page of my website sets a cookie to keep track of the CSS style the user prefers. It's easy to read and act upon that cookie using PHP, but I also need that style preference to apply to my more-or-less static pages, which at the moment just use SSI to include global header text.

Is there any way to use this cookie in SSI, or do I need to use PHP everywhere?

david_ross 03-28-2004 08:44 AM

Take a look at:
http://www.w3.org/Jigsaw/Doc/User/SSI.html#cookie

The other option is to virtually include a perl or php script and read the cookies there.

Electrode 03-28-2004 09:25 AM

Quote:

Originally posted by david_ross
The other option is to virtually include a perl or php script and read the cookies there.
I didn't know I could do that...


All times are GMT -5. The time now is 04:39 PM.