powerhouse has asked for the wisdom of the Perl Monks concerning the following question:
print "Content-type: text/html\n"; print "Set-Cookie: $COOKIE_KEY=$cookie; PATH=$path\n";
Is that the correct way to do it? Because if I change it to that, then when I change the page, I am not logged in any longer, as if that is not "Set-Cookie: $COOKIE_KEY=$cookie; PATH=$path\n"$cookie = cookie (-name => $COOKIE_KEY, -value => $cookie, -expires => "+1d" ); print header(-cookie => $cookie, -P3P=>"policyref=/w3c/p3p.xml" );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting cookie code...
by knoebi (Friar) on Jul 08, 2004 at 15:14 UTC | |
|
Re: Setting cookie code...
by powerhouse (Friar) on Jul 08, 2004 at 11:32 UTC | |
|
Re: Setting cookie code...
by Joost (Canon) on Jul 08, 2004 at 13:05 UTC |