in reply to Recommended modules for handling cookies?
OK,
- Sorry for screwing up with the - which should have been _. That's what my code has.
- The cookie does get set, with a later expiration date than today.
- The cookie is in my netscape cookies file.
- Here's that snippet of code:
HELP! What is fishy to me are my dates! And what exactly is that -0500 doing there? (I got this code from somewhere else)$cookie = $ENV{HTTP_COOKIE}; $name="cookie_name"; $value="cookie_value"; $cur_date = "Tue 28 Mar 2000 13:49:23 -0500"; $expires_date="Wed, 29 Mar 2000 13:49:23 -0500"; $path = "/"; $domain = ".tripod.com"; print "Content-type: text/html\n"; print "Set-cookie: $name=$value; date=$cur_date; expires=$expires_date +; path=$path; domain=$domain"; print " <html><body>$cookie</body></html> ";
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Re: Recommended modules for handling cookies?
by btrott (Parson) on Mar 29, 2000 at 03:15 UTC | |
RE: Re: Recommended modules for handling cookies?
by plaid (Chaplain) on Mar 29, 2000 at 03:29 UTC |
In Section
Seekers of Perl Wisdom