[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] OT: CGI::Session and CGI::Simple


We have talked about this on the list in the past (check the archives
for the thread), and the CGI::Session maintainer has been notified
before, but nothing has been done about it.  If you look at
rt.cpan.org you will see lots of things outstanding, including this
ticket which covers exactly what your problem is: 
https://rt.cpan.org/NoAuth/Bug.html?id=6141

If you are using CGI::Application::Plugin::Session to manage your
session, then you can get around this problem by not passing the
$self->query object to CGI::Session, but passing the value of the
session ID directly.  It is a little bit more manual, but it does
work.

I tried switching to CGI::Simple a couple of time as well, but got
fedup with the hassle.  The problem is partially CGI.pm's fault, since
it doesn't provide a custom 'can' method to be able to deal with the
autoloading it does (ie $query->can('cookie') will only return true if
you have already called the cookie method previously in your code
because it hasn't been compiled yet).

Good Luck...

Cees

On Mon, 10 Jan 2005 15:27:11 -0600, Jason A. Crome <suppressed> wrote:
> Hello,
> 
> This is somewhat off-topic, but it's something I noticed in developing
> an app with CGI::Application, and was hoping someone might have some
> insight into this.
> 
> In the name of efficiency, I replaced CGI.pm in my application with
> CGI::Simple.  Who doesn't like the thought of doubling the speed of that
> aspect of an app, right?  As I was adding my session handling logic to
> the application, I noticed that every single request to the application
> produced a new session.  Experimentation and tesing ensued, and I
> discovered that CGI::Session was not playing nicely with CGI::Simple.
> As soon as I reverted to CGI.pm, everything magically started working again.
> 
> I can't be the only person using CGI::Application, CGI::Session, and
> CGI::Simple, can I?  Has anyone else noticed this?  If so, how have you
> worked around it?
> 
> On another, related note, I keep putting off releasing a patched version
> of CGI::Session (as it seems to be neglected), but this might be another
> thing that expedites that.
> 
> Any help or insight is appreciated!  Thanks!
> 
> Jason A. Crome
> 
> ---------------------------------------------------------------------
> Web Archive:  http://www.mail-archive.com/suppressed/
>               http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: suppressed
> For additional commands, e-mail: suppressed
> 
> 


-- 
Cees Hek

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.