in reply to Re: Re: Re: Re: Apache Session problem after update
in thread Apache Session problem after update

Try replacing your untie at the end with tied(%session)->save(). I think you might be having problems with the new randomization of the order of destruction in Perl 5.8.1.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Apache Session problem after update
by mkenney (Beadle) on Oct 07, 2003 at 01:31 UTC
    That got it working, same error but it does work now. I'm confused that I seem to be writing the most basic of code, and getting ghtese errors? I know it is not great code, ut is it that bad (you can say yes!!).

    Mark

    P.S. THANK_YOU THANK-YOU THANK-YOU!! I thank-you again for the time you have spent helping me!!
      I think the problem is not your code, but rather an interaction between Perl 5.8.1 and Apache::Session. When your CGI ends, Perl tries to destroy all the objects. Some of the Apache::Session objects have DESTROY methods that get triggered when this happens. In Perl 5.8.1, you can no longer count on the order in which these get called, and I think that somehow the object holding the database handle is getting destroyed before another object that wants to use it. One way to find out would be to go into the A::S source code and add warning messages to all the DESTROY methods so you can see what order they get called in.

      Unfortunately, the simplest fix for you would probably be to go back to 5.6.1. It has better performance anyway, so it might be a better choice. The only reasons to use 5.8.x are unicode and threads.

        I did not know that at all. I will go back to 5.6.1 this weekend when there is low use. I'll also compile the modules myself. I can swear to you, that I did not intiate the 5.8.1 upgrade, maybe there was a required module that did? I do not use unicode or threads in anything I wrote so far. It sounds like 5.8.1 is a test bed for 6.0, I'm sure I'm off on that.

        I can not thank-you enough for your help. It makes me feel better about the world that someone would take the time and effort.

        Thank-you Thank-you Thank-you

        I hope that I can find something that I can return the favor on sometime. I'm in your dept.

        Mark
Re^6: Apache Session problem after update
by Anonymous Monk on Apr 11, 2011 at 11:45 UTC
    Hi We are facing a similar problem in IIS, but using tied at the end fails the DB updates. COuld you please suggest on this.

      I don't know anything about IIS, but unless you tell us how things fail for you, we (as a collective) can't help you much.