Re: CGI::Session or CGI::Application

[prev] [thread] [next] [Date index for 2005/01/16]

From: sofadmin
Subject: Re: CGI::Session or CGI::Application
Date: 02:12 on 16 Jan 2005
Interesting, your comments on CGI::Session vs Apache::Session as I've had
nothing but trouble with Apache::Session::File -- session data
inconsistently being written to the file. Several years ago I first tried
Apache::Session, but had the problem with data being saved in the session,
so tried CGI::Session, which at the time also used a tied hash &
everything worked fine (used ::File & ::MySQL, both). Unfortunately, a
recent server upgrade forced a CGI::Session module upgrade -- & the newer
module had removed the tied hash implementation in favor of an object
oriented one. Couldn't find the older module with tied hash implementation
anywhere, so quickly changed to using Apache::Session for those sites that
were using the session module. The ::MySQL module seems OK, but the ::File
module had same problem as before - inconsistent writing of data to the
session. So, I had to scramble to re-write code for several sites to
implement the 'new' CGI::Session oo implementation. Do you use the
Apache::Session::File module or one of the others?

Sys



>
> Octavian Rasnita wrote:
>> Hi,
>>
>> If I want to use CGI::Session or CGI::Application, can I do it if I use
>> mod_perl or there are better modules for using with MP?
>
> Just a couple of thoughts:
>    CGI::Session does not appear to be well maintained. It's very popular
> and I know many people who have tried to send in patches and fixes but
> the author has been unresponsive. There is also no way to 'guarantee'
> that no too session will have the same id with CGI::Session, especially
> in a multi-server environment (eg, load-balanced cluster).
>
> Lately I have switched to using Apache::Session (and sometimes wrapping
> it in an object interface since it's a tied-hash). It's well maintained
> and you can easily use something like mod_unique_id with Apache to
> almost absolutely guarantee that each new request will have it's own id
> and can there use that id when you start a session.
>
> On a C::A note, I wonder how hard it would be for Cees to add
> Apache::Session support to C::A::P::Session.
>
> --
> Michael Peters
> Developer
> Plus Three, LP
>


(message missing)

CGI::Session or CGI::Application
Octavian Rasnita 05:29 on 15 Jan 2005

Re: CGI::Session or CGI::Application
Sean Davis 12:53 on 15 Jan 2005

Re: CGI::Session or CGI::Application
Michael Peters 13:15 on 15 Jan 2005

Re: CGI::Session or CGI::Application
sofadmin 02:12 on 16 Jan 2005

Re: CGI::Session or CGI::Application
Michael Peters 02:19 on 16 Jan 2005

Re: CGI::Session or CGI::Application
Todd Finney 02:57 on 16 Jan 2005

Re: CGI::Session or CGI::Application
Perrin Harkins 18:56 on 17 Jan 2005

Re: CGI::Session or CGI::Application
sofadmin 17:49 on 16 Jan 2005

Re: CGI::Session or CGI::Application
William McKee 19:45 on 17 Jan 2005

Re: CGI::Session or CGI::Application
Perrin Harkins 20:16 on 17 Jan 2005

Re: CGI::Session or CGI::Application
William McKee 20:48 on 17 Jan 2005

Re: CGI::Session or CGI::Application
Octavian Rasnita 06:36 on 18 Jan 2005

Re: CGI::Session or CGI::Application
David Hodgkinson 13:55 on 15 Jan 2005

Re: CGI::Session or CGI::Application
Todd Finney 23:58 on 17 Jan 2005

Generated at 14:43 on 11 Apr 2005 by mariachi v0.52