Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [webmaster33] GT::Session::File problems

Quote Reply
Re: [webmaster33] GT::Session::File problems In reply to
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.
Subject Author Views Date
Thread GT::Session::File problems webmaster33 4166 May 8, 2003, 9:15 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4033 May 8, 2003, 12:11 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4036 May 8, 2003, 1:27 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4095 May 8, 2003, 1:54 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4026 May 8, 2003, 2:49 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4020 May 8, 2003, 2:52 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4087 May 8, 2003, 2:56 PM
Post Re: [webmaster33] GT::Session::File problems
Paul 4073 May 8, 2003, 3:17 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 4034 May 8, 2003, 3:11 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 4048 May 8, 2003, 3:20 PM
Post Post deleted by webmaster33
webmaster33 4027 May 9, 2003, 11:13 AM
Thread Re: [webmaster33] GT::Session::File problems
webmaster33 4004 May 18, 2003, 9:35 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4027 May 18, 2003, 10:24 AM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4034 May 18, 2003, 11:18 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 3964 May 18, 2003, 11:37 AM
Post Re: [Paul] GT::Session::File problems
webmaster33 4003 May 18, 2003, 11:45 AM