[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Use cgicc Class to set cookie.
From: |
Dewaine Chan |
Subject: |
Use cgicc Class to set cookie. |
Date: |
Mon, 30 Jul 2001 15:18:00 -0400 |
Hello:
I'm pretty new to C++ programming. I have downloaded the cgicc class
library. I am trying to set cookie using it. The following is the code
segment where I try to set the cookie:
cout << HTTPCookie::HTTPCookie("authentication", Value1,"Hello
World!",
"devel.dhhs.state.nc.us",life,"/",false)
<< HTTPHTMLHeader() << endl;
(life = 14400, Value1=2001210).
The following is part of the output from the executable I ran at my
unix's shell:
Set-Cookie:authentication=2001211; Comment=Hello World!;
Domain=devel.dhhs.state.nc.us; Max-Age=14400; Path=/; Version=1
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML lang="EN" dir="LTR" >
<HEAD>
<STYLE><!--
I checked syntx and can't find anything obvious. I tried to use the
Netscape 4.5 and IE 5.5. Could you please help.
Thank you very much.
Sincerely
Dewaine Chan
- Use cgicc Class to set cookie.,
Dewaine Chan <=