Subject: | Apache::Session::Store::File::materialize appends to existing serialized value |
Doing multiple restore() on a single session without any save() causes
the serialized value to keep growing. It may be possible that newly
read values aren't used by the Storable serializer as it seems to be
parse the first value. It is also possible
Our code does this to reread the session in small critical sections:
$self->make_unsynced();
$self->acquire_read_lock();
$self->restore();
// do critical section
$self->release_read_lock();
Clearing the $session->{serialized} before reading the file in
Apache::Session::File::Store fixes the problem.