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