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
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,
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 sure if
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 $cookies =
Andreas J. Koenig wrote:
On Sat, 22 Dec 2007 13:52:26 +0100, [EMAIL PROTECTED] (Andreas J.
Koenig) said:
On Fri, 21 Dec 2007 23:36:53 -0800, Philippe M. Chiasson [EMAIL
PROTECTED] said:
http://www.apache.org/~gozer/mp1/mod_perl-1.31-rc1.tar.gz
The apache Configure on my box sets
On Mon, 24 Dec 2007 13:12:05 -0800, Philippe M. Chiasson [EMAIL
PROTECTED] said:
Looks like it was caused by httpd's own stuff defining LIBEXT and clobbering
our own. Can you try the attached patch ?
Maybe I'm too tired right now, but on the first try it did again not work,
saying
Andreas J. Koenig wrote:
On Mon, 24 Dec 2007 13:12:05 -0800, Philippe M. Chiasson [EMAIL
PROTECTED] said:
Looks like it was caused by httpd's own stuff defining LIBEXT and
clobbering
our own. Can you try the attached patch ?
Maybe I'm too tired right now, but on the first try it
On Mon, 24 Dec 2007 15:07:20 -0800, Philippe M. Chiasson [EMAIL
PROTECTED] said:
I then changed directory to apache.../src/modules/perl/ and did a
'make libperl.a', which did compile one for me. Then I switched back
to mod_perl directory and retried a 'make' and indeed this finished
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
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 = / };
my
10 matches
Mail list logo