[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Apache Session and Lock files
From:       Perrin Harkins <perrin () primenet ! com>
Date:       2000-11-29 21:39:05
[Download RAW message or body]

On Wed, 29 Nov 2000, cbell wrote:
> After tying a hash variable to a session, and writing to it, I would
> like to undef my hash variable just to make sure that the session lock
> file is deleted.  However, when I do this, then any changes I make to
> the session hash don't get saved.

Well, yeah.  When you undef it, you destroy the session.  You don't even
have a hash to write to anymore.  It will save what you had, but you'll
have to go and open it again if you want to use it.  You shouldn't need to
do this anyway, since I think Apache::Session does an immediate save when
you create a new session.

Whay are you worried about the lock files?  Have you had a problem with
them lingering?

Incidentally, if you're using a database for storage you don't need to do
additional locking.  Just use NullLocker. 

- Perrin

---------------------------------------------------------------------
To unsubscribe, e-mail: modperl-unsubscribe@apache.org
For additional commands, e-mail: modperl-help@apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic