Ron is correct The cookie is set a string that looks something like this:
"acct = information to store on the client machine goes here;
domain=www.mydomain.com; path=/cgi-bin/mycookie; expires=Sat, 17-Feb-2001
11:00:00 GMT;";
The browser will return each relevant cookie to the server if the server is
visited again. The cookies will be sent as a series of headers that include
the cookie name (in this case "acct") and the cookie value (in this case
"information to store on the client machine goes here"). If you want to
parse data from the cookie, you need to include delimiters in the cookie
value.
Ben
At 03:44 PM 2/13/01 -0500, you wrote:
>> 1. Is there a way to specify exactly which cookie I want rather than
>> iterating through all known cookies?
>
>$cookies{foo};
>
>> 2. What's an easy way to parse the value string returned from my cookie
>> back into the individual elements $fn, $ln, $addr, etc.
>
>Its my understanding that cookies are flattened into a scalar before they
>are stored on the remote computer. It wouldn't make much sense for a remote
>system to store its data in say a Perl hash. Try printing out $cookies{foo}.
>You could probably use split() to get the values of individual fields.
>
>Or you could store the cookie as a string like
>
>value1:value2:value3
>
>then split the values on your end.
>
>
>_______________________________________________
>Perl-Win32-Web mailing list
>[EMAIL PROTECTED]
>http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
>
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web