{
    "mode": "perldoc",
    "parameter": "Apache::Session::MySQL::NoLock",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Apache%3A%3ASession%3A%3AMySQL%3A%3ANoLock/json",
    "generated": "2026-06-13T10:33:28Z",
    "synopsis": "use Apache::Session::MySQL::NoLock;\n#if you want Apache::Session to open new DB handles:\ntie %hash, 'Apache::Session::MySQL::NoLock', $id, {\nDataSource => 'dbi:mysql:sessions',\nUserName => $dbuser,\nPassword => $dbpass,\n};\n#or, if your handles are already opened:\ntie %hash, 'Apache::Session::MySQL::NoLock', $id, {\nHandle => $dbh,\n};\nTo configure the non-locking session store in RT (what I use this module for),\nput the following into your C<RTSiteConfig.pm> module:\nSet($WebSessionClass , 'Apache::Session::MySQL::NoLock');",
    "sections": {
        "NAME": {
            "content": "Apache::Session::MySQL::NoLock - An implementation of Apache::Session::MySQL without locking\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Apache::Session::MySQL::NoLock;\n\n#if you want Apache::Session to open new DB handles:\n\ntie %hash, 'Apache::Session::MySQL::NoLock', $id, {\nDataSource => 'dbi:mysql:sessions',\nUserName => $dbuser,\nPassword => $dbpass,\n};\n\n#or, if your handles are already opened:\n\ntie %hash, 'Apache::Session::MySQL::NoLock', $id, {\nHandle => $dbh,\n};\n\nTo configure the non-locking session store in RT (what I use this module for),\nput the following into your C<RTSiteConfig.pm> module:\n\nSet($WebSessionClass , 'Apache::Session::MySQL::NoLock');\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module is an implementation of Apache::Session. It uses the MySQL backing store and the\nNull locking scheme. See the example, and the documentation for Apache::Session::Store::MySQL\nfor more details.\n",
            "subsections": []
        },
        "WARNING": {
            "content": "This module explicitly DOES NOT DO ANY LOCKING. This can cause your session data to be\noverwritten or stale data to be read by subsequent requests.\n\nThis CAN CAUSE LARGE PROBLEMS IN YOUR APPLICATION.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "This module was written by Tomas Doran <bobtfish@bobtfish.net>.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Apache::Session::MySQL, Apache::Session::Flex, Apache::Session\n",
            "subsections": []
        }
    },
    "summary": "Apache::Session::MySQL::NoLock - An implementation of Apache::Session::MySQL without locking",
    "flags": [],
    "examples": [],
    "see_also": []
}