Skip Menu |
 

This queue is for tickets about the CGI-Session CPAN distribution.

Report information
The Basics
Id: 3905
Status: resolved
Priority: 0/
Queue: CGI-Session

People
Owner: MARKSTOS [...] cpan.org
Requestors: m.harrison [...] anu.edu.au
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.94
Fixed in: (no value)



Subject: Can not cancel expiration date for individual parameters
Download (untitled) / with headers
text/plain 828b
When setting the expiration time on the whole session, a value of 0 will disable session expiration. When setting the expiration time on an individual parameter, a value of 0 will expire the parameter immediately. I think the behaviour should be the same in both cases, and that behaviour should be to disable expiration. From looking quickly at the code, it would seem that "sub _expire_params" should be something like while ( my ($param, $etime) = each %{$exp_list} ) { if ( time() >= ($self->atime() + $etime) ) { push @trash_can, $param; } } I am using.... perl -v: "This is perl, v5.8.0 built for powerpc-linux-thread-multi" uname -a: Linux ssspc33 2.4.20-ben10 #1 Mon Sep 29 18:42:01 EST 2003 ppc unknown unknown GNU/Linux Debian unstable, package is: libcgi-session-perl 3.94-1
From: markstos [...] cpan.org
Download (untitled) / with headers
text/plain 1.3k
[guest - Tue Sep 30 03:16:44 2003]: Show quoted text
> When setting the expiration time on the whole session, a value of 0 > will disable session expiration. > When setting the expiration time on an individual parameter, a value > of 0 will expire the parameter immediately. > I think the behaviour should be the same in both cases, and that > behaviour should be to disable expiration. > From looking quickly at the code, it would seem that "sub > _expire_params" should be something like > > while ( my ($param, $etime) = each %{$exp_list} ) { > > if ( time() >= ($self->atime() + $etime) ) { > push @trash_can, $param; > } > } > > > I am using.... > perl -v: > "This is perl, v5.8.0 built for powerpc-linux-thread-multi" > uname -a: > Linux ssspc33 2.4.20-ben10 #1 Mon Sep 29 18:42:01 EST 2003 ppc
unknown Show quoted text
> unknown GNU/Linux > > Debian unstable, package is: > libcgi-session-perl 3.94-1 >
Thanks for this bug report so long ago! We are now discussing this on the users mailing list to decide how to best address it in the 4.x release that should be ready soon. Your suggestion to make the interface more consistent is a point well taken, but may break backward compatibility with the old behavior. Finding the balance there is the point of discussion. Join us if you like! cgi-session-users@lists.sourceforge.net Mark
Download (untitled) / with headers
text/plain 173b
No on answered my post to the list, so I'll have to bring it up again. For reference, the post was here: http://sourceforge.net/mailarchive/message.php?msg_id=12244228


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.