comp.lang.ada
 help / color / mirror / Atom feed
* Cookies with AdaCGI 1.5
@ 2000-09-10 15:15 Tim Gahnström
  0 siblings, 0 replies; only message in thread
From: Tim Gahnström @ 2000-09-10 15:15 UTC (permalink / 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






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-09-10 15:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-10 15:15 Cookies with AdaCGI 1.5 Tim Gahnström

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox