> 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");
Two ways to test 
1) have your script print the value of $membusrname
2) look in your cookies and see if it's there

If either of those are screwy then you know where to look if they bothe work then it 
must be witht the way it grabbed

> 
> 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]
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to