LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-27-2004, 11:09 AM   #1
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Debian
Posts: 158

Rep: Reputation: 16
Question 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?
 
Old 03-28-2004, 08:44 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.

Last edited by david_ross; 03-28-2004 at 08:45 AM.
 
Old 03-28-2004, 09:25 AM   #3
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Debian
Posts: 158

Original Poster
Rep: Reputation: 16
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSI is not working... help! dbeatle123 Linux - General 20 03-23-2005 02:23 PM
SSI and appache jax8 Linux - Newbie 1 03-23-2004 03:15 AM
SSI and Apache 2 krumholz Linux - General 6 10-05-2003 07:50 PM
ssi problem dsgdevil Linux - General 1 02-15-2003 05:43 PM
ssi in apache lustra Linux - Networking 0 02-28-2002 06:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration