in reply to Re: CGI::Cookie issues
in thread CGI::Cookie issues
Thanks... That hides the header... which is good! However, I still cannot get the ReadCookie() method to read the cookie... or more correctly, I cannot get the cookie set properly.
#!/usr/local/bin/perl use CGI qw/:standard/; use CGI::Cookie; $passwd="toronto5"; $cookie1 = new CGI::Cookie(-name=>'DB', -value=>{ username => simony, password => toronto5, }, -expires => '+8H'); #print header(-cookie=>[$cookie1]); print "Set-Cookie: $cookie1\n"; print "Content-Type: text/html\n\n"; print $cookie1;
The above has no problem setting the cookie if it stands alone. I don't want to be a code mooch, but finding documentation that is correct is not easy--even the man pages are not consistant. Can you provide any direction in this manner?
Thanks, Simon
|
|---|