Skip Menu |

This queue is for tickets about the MasonX-Request-WithApacheSession CPAN distribution.

Report information
The Basics
Id: 5615
Status: resolved
Priority: 0/
Queue: MasonX-Request-WithApacheSession

People
Owner: Nobody in particular
Requestors: herald [...] breggen.xs4all.nl
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: 0.30



Subject: expiration of cookies
Hi, Tanks for MasonX::Request::WithApacheSession! There is one important thing about Cookies. I could not find a way with your module to omit the expiration date of the cookie. Cookies without explicit expiration date expire when the browser is closed. This functionalicity is crucial for me. I changed line 561 of WithApacheSession.pm to make it work. It would make sense to me to use the expire clause the same way as CGI::Cookie does: (from CGI documentation) ------------- optional attributes: 1. an expiration time ... If an expiration date isn’t speci- fied, the cookie will remain active until the user quits the browser. -------------- Could you fix this in the next release? Thanks! Herald
Date: Wed, 10 Mar 2004 10:50:33 -0600 (CST)
From: Dave Rolsky <autarch [...] urth.org>
To: Guest via RT <bug-MasonX-Request-WithApacheSession [...] rt.cpan.org>
Subject: Re: [cpan #5615] expiration of cookies
RT-Send-Cc:
On Wed, 10 Mar 2004, Guest via RT wrote: Show quoted text
> There is one important thing about Cookies. I could not find a way with > your module to omit the expiration date of the cookie. Cookies without > explicit expiration date expire when the browser is closed. This > functionalicity is crucial for me. > > I changed line 561 of WithApacheSession.pm to make it work. > > It would make sense to me to use the expire clause the same way as CGI::Cookie does: > > (from CGI documentation) > ------------- > optional attributes: > > 1. an expiration time > ... > If an expiration date isn’t speci- > fied, the cookie will remain active until the user quits the > browser. > -------------- > > Could you fix this in the next release?
If you set the value of session_cookie_expires to undef, that should do the trick, I think. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/
From: herald [...] breggen.xs4all.nl
[autarch@urth.org - Wed Mar 10 11:51:04 2004]: Show quoted text
> > If you set the value of session_cookie_expires to undef, that should > do > the trick, I think.
That is possible, I suppose. But I use the httpd.conf directives. I tried PerlSetVar MasonSessionCookieExpires undef But that causes: Set-Cookie: session_id=74b26d0e4c857f9d6b85c7a100ed3879; path=/; expires=undef Leaving the directive out of the config results in: Set-Cookie: session_id=7296bdf8438ead058b9da119fcdd233d; path=/; expires=Thu, 11-Mar-2004 17:32:44 GMT So, I see no way out when I want to stick with httpd.conf-directives... Herald
Date: Sat, 13 Mar 2004 00:30:48 -0600 (CST)
From: Dave Rolsky <autarch [...] urth.org>
To: Guest via RT <bug-MasonX-Request-WithApacheSession [...] rt.cpan.org>
Subject: Re: [cpan #5615] expiration of cookies
RT-Send-Cc:
On Wed, 10 Mar 2004, Guest via RT wrote: Show quoted text
> So, I see no way out when I want to stick with httpd.conf-directives...
Good point. I'll try to think of a clean way to do this. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/