How can I set a cookie when someone visits my home page?
I've tried using a server side include like so
# code #
#!/usr/bin/perl -w
# This is in my html page:
# !--#exec cgi=/cgi-bin/ezInvoice2/ssi.cgi--
use strict;
use CGI qw/:standard/;
use
I apologize, the code I sent previously does create an error, this code
does not...
# code
#!/usr/bin/perl -w
use strict;
use CGI qw/:standard/;
use CGI::Carp('fatalsToBrowser');
my $Q = new CGI;
my $demo_uses;
$demo_uses = $Q-cookie('demo_tracker');
if
Bill Stephenson wrote:
How can I set a cookie when someone visits my home page?
I've tried using a server side include like so
# code #
#!/usr/bin/perl -w
# This is in my html page:
# !--#exec cgi=/cgi-bin/ezInvoice2/ssi.cgi--
[snip
Thanks for the pointer Bob,
I read a few of the Google links you pointed out and now understand why
this cannot be done. I guess I'll have to work a little bit around this
one. I found that I can set/read/manipulate a cookie with JavaScript,
(GoLive has some tools for this) but I haven't tested