logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Apache::Session::MySQL::NoLock - An implementation of Apache::Session::MySQL without locking

Author

       This module was written by Tomas Doran <bobtfish@bobtfish.net>.

Description

       This module is an implementation of Apache::Session. It uses the MySQL backing store and the Null locking
       scheme. See the example, and the documentation for Apache::Session::Store::MySQL for more details.

Name

       Apache::Session::MySQL::NoLock - An implementation of Apache::Session::MySQL without locking

See Also

       Apache::Session::MySQL, Apache::Session::Flex, Apache::Session

perl v5.36.0                                       2022-11-19                Apache::Session::MySQL::NoLock(3pm)

Synopsis

        use Apache::Session::MySQL::NoLock;

        #if you want Apache::Session to open new DB handles:

        tie %hash, 'Apache::Session::MySQL::NoLock', $id, {
           DataSource => 'dbi:mysql:sessions',
           UserName => $db_user,
           Password => $db_pass,
        };

        #or, if your handles are already opened:

        tie %hash, 'Apache::Session::MySQL::NoLock', $id, {
           Handle => $dbh,
        };

        To configure the non-locking session store in RT (what I use this module for),
        put the following into your C<RT_SiteConfig.pm> module:

           Set($WebSessionClass , 'Apache::Session::MySQL::NoLock');

Warning

       This module explicitly DOESNOTDOANYLOCKING. This can cause your session data to be overwritten or
       stale data to be read by subsequent requests.

       This CANCAUSELARGEPROBLEMSINYOURAPPLICATION.

See Also