in reply to Cookies Help
You probably should check out the documentation for CGI.pm cookie handling. I'd also recommend reading through my CGI course (link at bottom).
use CGI qw(:standard); # reading a cookie my $cookie_value = cookie( $cookie_name ); # creating a cookie my $cookie = cookie( -name => $cookie_name, -value=> $some_value ); # And setting the cookie (while printing the header) print header( -cookie => $cookie );
The above is a simple example of how to do this. Read the docs for more information about how it works.
Cheers,
Ovid
New address of my CGI Course.
Silence is Evil (feel free to copy and distribute widely - note copyright text)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Cookies Help
by Anonymous Monk on Dec 10, 2002 at 01:38 UTC | |
by batkins (Chaplain) on Dec 10, 2002 at 02:33 UTC | |
by ACJavascript (Acolyte) on Dec 10, 2002 at 02:58 UTC | |
by batkins (Chaplain) on Dec 10, 2002 at 03:46 UTC |