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 >