Apache::Session::MySQL::NoLock(3pm)

Apache::Session::MySQL::NoLock3pm

An implementation of apache::session::mysql without locking

Usage

 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');

Overview

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.

Warning

This module explicitly DOES NOT DO ANY LOCKING. This can cause your session data to be overwritten or stale data to be read by subsequent requests.

This CAN CAUSE LARGE PROBLEMS IN YOUR APPLICATION.

Releases

6 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12–13

Author

This module was written by Tomas Doran <[email protected]>.

From libapache-session-perl 1.94-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.