Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-08-2004, 06:56 PM   #1
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
Question C++ CGI scripts and Cookies

Yes I know WHAT a cookie is and HOW it works, but how do I code functions to work WITH cookies in C++? Every tutorial on line uses Perl ( ) and I just don't get what they are trying to say.

How do I set and get a value from a cookie using C/C++?
Old 11-09-2004, 04:51 PM   #2
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
Try the set-cookie http header. I don't know about reading cookies, but I assume it should be similar. ... by the way, are you sure you want to do this in C++?
Old 11-09-2004, 06:36 PM   #3
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
Thanks. Yes I am sure I want to do this via C++. This is because I already wrote myself a very handy CGI library.
Old 11-10-2004, 12:20 AM   #4
Registered: Aug 2003
Location: San Francisco, California
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
try cgicc:

If you check I have lots of random cgicc code, and even some custom cgi code :-D

Last edited by karlan; 11-10-2004 at 12:21 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SELinux and CGI Scripts silvercloud Linux - Enterprise 0 08-23-2005 11:35 PM
Forking CGI scripts narc Linux - Software 0 06-07-2005 10:58 PM
Getting CGI scripts to work Cool_Hand_Luke Linux - Newbie 5 03-09-2005 05:33 PM
CGI Cookies The_Nerd Programming 2 05-31-2004 11:00 AM
cant run cgi scripts jmdey Linux - Networking 1 01-07-2002 07:42 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:24 PM.

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