perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Octavian Rasnita" <>
Subject Re: What am I missing?
Date Thu, 06 Oct 2005 07:28:28 GMT
From: "Barksdale, Ray" <>

> This needs to stay on the list.
> Assuming you did create your table as a MyISAM table
> which I think forces atomic updates (implicit commits),
> that shouldn't be a problem and it is writing something.
> I've only used this thing once so I'm no expert but it does
> work unchanged after several years. My code resembles yours
> except the last thing done is an explicit untie as follows:

Ok, I have solved it.
The only thing I needed to do was to change from undef %session to untie

The program used was exactly the program I have sent on the list. I have
just defined $dbh, and nothing more.

I don't know why it works with untie() but not with undef.

The Apache::Session POD says:

    As shown in this example, you should undef or untie your session hash as
    soon as you are done with it. This will free up any locks associated
    with your process.

So it should also work with undef, but it is OK with untie.

Thank you all.


View raw message