in reply to Re: CGI Cookie creation problem
in thread CGI Cookie creation problem
Hi, Sorry I did miss a few things. I updated my code as what is listed below but still no cookie is created. Thanks for your reply!
use CGI (); #Create Cookie $mc_cookie_domain_name = ".sample.com"; $mc_path_script = "/"; $mc_cookie_expiration_time = "+2h"; $mc_cookie_name = "Sample_Cookie"; #$mc_cookie_value = $mc_form_member_name; $mc_cookie_value = "Logged In"; my $cgi = CGI->new(); my $cookie = $cgi->cookie(-name => $mc_cookie_name, -value => $mc_cook +ie_value, -expires => $mc_cookie_expiration_time, -domain => $mc_cook +ie_domain_name); print $cgi->redirect(-url => 'https://www.sample.com/cgi-bin/confirm_a +ccount_2.pl', -cookie => $cookie); #End of Create Cookie
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: CGI Cookie creation problem
by muba (Priest) on Jun 19, 2012 at 14:49 UTC | |
by Nicko2004 (Initiate) on Jun 20, 2012 at 10:11 UTC |
In Section
Seekers of Perl Wisdom