From: "Tim Gahnström" <md9tim@mdstud.chalmers.se>
Subject: Cookies with AdaCGI 1.5
Date: Sun, 10 Sep 2000 17:15:24 +0200
Date: 2000-09-10T15:15:27+00:00 [thread overview]
Message-ID: <Pine.SOL.4.21.0009101700180.11252-100000@fraggel34.mdstud.chalmers.se> (raw)
Hi
I have a few problems with puting out cookies.
This litlle code snipet put a cookie
Set_Cookie("test_key", "test_value","","","");
Put_CGI_Header;
Put_Line("<p>This is just a test");
Put_HTML_Tail;
and the value can be retrived and displayed by this code
Put_CGI_Header;
Put("Number of cookies=");
Put(Cookie_Count);
New_Line;
Temp := Cookie_Value(1);
Put("Value of cookie: ");
Put_Line(To_String(Temp));
One question is why won't the cookie show among the IE cookies or in the
NS cookie file? when I obviously can send and retrieve the cookie?
Question two what is the format of the expires parameter
Set_Cookie("test_key", "test_value","EXPIRATION","","");
Thanks
Tim
reply other threads:[~2000-09-10 15:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox