Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks,
I used the below code to set the cookie in my system. i am getting error. please any one help me.
Thanks
#!/usr/bin/perl use CGI; use HTTP::Cookies; my $q = new CGI; my $status=$q->cookie('ckname'); &set_cookie($status); sub set_cookie { my($cookieid)=shift; my @cookies = ($q->cookie(-name=>"ckname", -value=>$cookieid, -expires=>'', -path=>'/', -domain=>'.bn.whsites.net')); print $q->header(-cookie=>\@cookies); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error in my code while set cookie?
by pg (Canon) on Oct 05, 2005 at 02:28 UTC | |
by Anonymous Monk on Oct 05, 2005 at 03:05 UTC | |
by Anonymous Monk on Oct 05, 2005 at 02:35 UTC | |
|
Re: Error in my code while set cookie?
by GrandFather (Saint) on Oct 05, 2005 at 02:25 UTC | |
by Anonymous Monk on Oct 05, 2005 at 02:31 UTC |