Thank you for your reply. You're right. I also realized that, but only in a while after posting the message. Would you suggest a workaround based on the structure of my code? Should I make %{$sessions} a class variable or something and (try to) detect when something inside it changes?
I can't think of a nice workaround for this. Does anyone know of a general solution in this case? It's pretty simple if I use a relational database, but I'm not so sure in the case with Berkeley DB files.
Alex