Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

CGI/C cookie

fnoyanfnoyan Posts: 103Member
Hi
How can I send a cookie with a CGI-C program?

Comments

  • JonathanJonathan Posts: 2,914Member
    Hi,

    : How can I send a cookie with a CGI-C program?
    I'm not familiar with CGI-C, but I would guess you just print a cookie header.

    printf "Set-cookie: name=value; path=/;
    ";

    Of course, CGI-C may have a sub/function/method call that does cookie setting that I don't know about. :-)

    Hope this helps,

    Jonathan

    ###
    # Example Of Perl 6 Syntax.
    push @will, my Power $button;
    my $hardware is Useless but Valuable;
    do ($nothing) while $i.work and print $stuff;
    push (@will, my Off $button) and die "with me";

Sign In or Register to comment.