Re: Cookie questions

2007-12-24 Thread Raymond Wan
Hi bop, Thanks for the e-mail. I ended up doing a mix of both your suggestion and John's and it seems to work ok. Both of your suggestions were great; thank you! Ray Boysenberry Payne wrote: Oops, I forgot the some code: # to set $cookie = { -name => "foo", -value => "bar", -path => "/

Re: Cookie questions

2007-12-24 Thread Raymond Wan
Hi John, John ORourke wrote: Cookie names are unique to a given domain (the domain which can optionally be explicitly set using $cookie->domain ) - if you write another cookie with the same name and domain and path it'll overwrite the previous one. Ah, thanks for this! I guess I had a bug

Re: Cookie questions

2007-12-24 Thread Boysenberry Payne
Oops, I forgot the some code: # to set $cookie = { -name => "foo", -value => "bar", -path => "/" }; my $data = []; push( @$cookie_data, Apache2::Cookie->new( $r, %{$cookie} ) ); foreach ( @$cookie_data ) { $_->bake( $r ); } # now to unset my $jar = Apache2::Cookie::Jar->new( $r ); my $co

Re: Cookie questions

2007-12-24 Thread Boysenberry Payne
This is what I do: $cookie = { name => "foo", value => "bar" } my $data = []; push( @$data, Apache2::Cookie->new( $r, %{$cookie} ) ); foreach ( @$data ) { $_->bake( $r ); } Hope it helps... -bop On Dec 24, 2007, at 2:55 AM, Raymond Wan wrote: Hi all, Sorry, but I'm not entirely sur

Re: Cookie questions

2007-12-24 Thread John ORourke
Raymond Wan wrote: I was wondering if it was possible to delete cookies. I read that using Javascript, cookies can be deleted by setting it to a time in the past. I'm not sure how to do it in Mason, though. I think I know how to get a cookie and also to set a new one and send it out. But, I

Cookie questions

2007-12-24 Thread Raymond Wan
Hi all, Sorry, but I'm not entirely sure if this is relevant to modperl... I was wondering if it was possible to delete cookies. I read that using Javascript, cookies can be deleted by setting it to a time in the past. I'm not sure how to do it in Mason, though. I think I know how to get a