topical media & game development

talk show tell print

lib-ch-example-ref-cgi-getCookie.cgi / cgi



  #!/bin/ch 
  /* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
  include <cgi.h>
   
  int main() 
  {
    class CResponse Response;
    class CRequest Request;
    chchar name[] = "testCookie";
    chchar *value;
  
    Response.begin();
    Response.title("Test of Request.getCookie");
    printf("<H1> Test of Request.getCookie </H1>
\n"); //get Cookie value = Request.getCookie(name); printf("\%s = \%s <br>\n", name, value); value = Request.getCookie("cookie name"); printf("\%s = \%s <br>\n", "cookie name", value); Response.end(); }


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.