Please ignore this meassage - it's a scope problem and I have figured it out - thanks all anyway !!!!!!!
A very tired Anadi
:)
From: "Anadi Taylor" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: cookie help needed Date: Tue, 04 Mar 2003 19:06:53 +0000
hi all, its me again !!!
this time I am having trouble with a cookie: i have written a script that sets a cookie:
use CGI qw/:standard/; use CGI::Cookie;
## create cookie my $cookie = new CGI::Cookie(-name=>'ptsbook',-value=>"$membusrname");
## send cookie print "Set-Cookie: $cookie\n";
and then i try to get this cookie in another web page like this:
## get cookie
## use CGI use CGI qw/:standard/; use CGI::Cookie;
## get cookie if (fetch CGI::Cookie) { my %newcook = fetch CGI::Cookie; my $ckpass = $newcook{'ptsbook'}->value; }
BUT $ckpass is empty - I cant figure out if its the way i have set the cookie with a var name:
-value=>"$membusrname");
or if its the way I am picking up the cookie - please help as I am almost finnished with this project !!!!!!
_________________________________________________________________ MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________ Express yourself with cool emoticons http://messenger.msn.co.uk
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]