Quote:
GT::Session::File needs also file locking as well ALL open() operation (read or write).I'm not sure what you mean.
Quote:
While each session file is unique for each visitor, the visitors many times double clicks to buttons. Therefore the data loss chance is not much less as if the file would be used by many users.A double click simply means a new session file will get created - the original won't be overwritten. File locking is used when one file is accessed by multiple people.
Quote:
The session file is opened with open(): open ($fh, "> $file") or return $self->error ('CANTOPEN', 'FATAL', $file, "$!");
The do() doesn't matter. After the open() there is GT::Dumper->dump used, and several tasks are done there.
Therefore there *IS* the time slice where 2 processes can which was caused by user multiple click.
Yes but as described above, if the user double clicks then all that will happen is a new session file will be created as the file names are random.