I have a Mason application that runs fine with Postgresql 7.4, Apache 1.3 and the appropriate version of mod_perl.
I am moving this application to RedHat Enterprise Linux with Apache/mod_perl 2 and Postgresql 7.4. After a bit of agony I now have a working mod_perl2/Mason environment on RHEL. I moved my application code over over and changed a few Apache calls to Apache2 calls and now the application at least loads and displays the home page. I'm having a strange problem with sessions. The first time through the code everything seems to work, i.e. I get a cookie from the client web browser and use the value of the cookie to restore the users session. The SECOND time through, however, the application hangs while trying to restore the session. I am using Log4perl to track the trail through the application. I have turned on logging in Postgresql (debug3 so far) and things look normal to me. Here is a snippet of code from my 'get_session.mas' that restores a user session if one exists and creates a new session if one does not exist: if ( exists($cookies{$Blb::cookie_name_id}) ) { $session_id = $cookies{$Blb::cookie_name_id}->value; $log->debug("FROM COOKIE: $session_id"); # Re-create our existing Apache::Session using existing session id eval { tie %session, 'Apache::Session::Postgres', $session_id, { Handle => $sess_dbh, Commit => 1, AutoCommit => 1, Generate => 'ModUniqueId', }; $log->debug("After tie"); }; # end eval $log->debug("After eval"); ... When it works I the output from all of the $log->debug statements. When it hangs I only see the "FROM COOKIE: $session_id" message in the log. The Postgres log shows a select statement that is selecting the session based on the session id. I can cut and paste this select into a postgres client session and it works. Has any one else experienced any thing like this before? ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users