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 => "/
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
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
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
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
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