> Moon, John wrote:
> > Does anyone know if I should be able to write a cookie like :
> >
>
> [ snip complex data structure ]
>
> You can do this if you serialize the complex structure into a scalar and
> then deserialize it when you read the cookie back.
>
> For an example of how to do this se
Moon, John wrote:
> Does anyone know if I should be able to write a cookie like :
>
[ snip complex data structure ]
You can do this if you serialize the complex structure into a scalar and
then deserialize it when you read the cookie back.
For an example of how to do this see the module
Apache:
> Does anyone know if I should be able to write a cookie like :
>
>
> $secure{USER}=$user->{USER_ID};
> $secure{LEVEL}=$REQUEST{LEVEL};
> %{$secure{USER_CATEGORIES}}=%USER_CATEGORIES;
> %{$secure{USER_ACCOUNTS}}=%USER_ACCOUNTS;
> @[EMAIL PROTECTED];
> my $my_cookie = $q->cookie(-name=>'TechDirec
Dear John,
It is likely that you cannot store complex datastructures in cookies. (at
least
how the CGI module is currently written). You could try encoding the data
to a string.
Jonathan Paton
[jwm]
Thank you for the "Dear John" letter ;-)... I was afraid that may be the
answer I got... but w
Dear John,
It is likely that you cannot store complex datastructures in cookies. (at least
how the CGI module is currently written). You could try encoding the data
to a string.
Jonathan Paton
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]