Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: wish: make ->name() work as an instance method
The current way of handling ->name() is sub-optimal. Using a class method is like setting a global, and can cause problems under mod-perl. Support for calling name() as an instance method should be added, and recommended as the default use, while still supporting the Old Way. Mark
Subject: Re: using different session names in the ::Session plugin [rt.cpan.org #17979]
Date: Sat, 4 Mar 2006 12:14:28 -0500
To: Bugs in CGI-Session via RT <bug-CGI-Session [...] rt.cpan.org>
From: Mark Stosberg <mark [...] summersault.com>
A related comment: On Sat, Mar 04, 2006 at 09:26:24AM -0500, Cees Hek wrote: Show quoted text
>
> > I wanted to run this idea by you: > > > > When using a different cookie name, let's call CGI::Session->name() > > automatically. > > > > I can't think of a reason not to, this is currently the only place that > > requires talking to CGI::Session directly.
> > The reason I haven't done this automatically is because I don't like > the way that CGI::Session handles this. You are effectively setting a > global variable, and that can have nasty repercussions if you are > running under mod_perl (ie sessions failing for some programs > intermittantly as the session name is changed dynamically at runtime > for only some of the apache children). ideally, CGI::Session should > allow you to change the name of the cookie in the options when you > create your Session object. If that change was made to CGI::Session, > then I'll quickly add code to CAP::Session to make it all more > seemless.