It might be more appropiate to use a shared memory based filesystem (such as tmpfs on Solaris / Linux, or / dev / md on BSD) to store sessions in files, because they are properly locked.
All registered variables are serialized after the request finishes. Registered variables which are undefined are marked as being not defined. On subsequent accesses, these are not defined by the session module unless the user defines them later.