Re: Help with cookies

2004-12-08 Thread Lawrence Statton
> 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

RE: Help with cookies

2004-12-08 Thread Bob Showalter
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:

Re: Help with cookies

2004-12-08 Thread Lawrence Statton
> 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

RE: Help with cookies

2004-12-08 Thread Moon, John
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

Re: Help with cookies

2004-12-08 Thread Jonathan Paton
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]

Help with cookies

2004-12-08 Thread Moon, John
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=>'TechDirect', -value=>\%secu