Apache...:MySQL(3pm)
π Apache::Session::MySQL π
okay bestie, so this page lives in the User Contributed Perl Documentation section of your manual, and it's all about Apache::Session::MySQL β an implementation of Apache::Session. yes, the name is giving "module that did not get a catchy nickname," we move anyway. β¨
π NAME π
Apache::Session::MySQL β an implementation of Apache::Session
like. that's it. that's the whole name section. it's honest, it's direct, it's lowkey iconic for saying exactly one thing and dipping. π
π¦ SYNOPSIS π¦
here's the vibe, copy-paste ready, no notes:
use Apache::Session::MySQL;
#if you want Apache::Session to open new DB handles:
tie %hash, 'Apache::Session::MySQL', $id, {
DataSource => 'dbi:mysql:sessions',
UserName => $db_user,
Password => $db_pass,
LockDataSource => 'dbi:mysql:sessions',
LockUserName => $db_user,
LockPassword => $db_pass
};
#or, if your handles are already opened:
tie %hash, 'Apache::Session::MySQL', $id, {
Handle => $dbh,
LockHandle => $dbh
};
so basically: two paths, pick your fighter. π₯ either you let Apache::Session open brand new DB handles for you (that's the first block, with DataSource, UserName, Password, LockDataSource, LockUserName and LockPassword all doing their little jobs), or your handles are already opened and you just hand over Handle and LockHandle. no cap, that's the whole fork in the road.
πΈ DESCRIPTION πΈ
this module is an implementation of Apache::Session. periodt. π
it uses the MySQL backing store and the MySQL locking scheme β so storage and locking, both MySQL flavored, matching set, adorable.
want the full tea? go read the example, plus the documentation for Apache::Session::Store::MySQL and Apache::Session::Lock::MySQL for more details. they're the ones holding the actual lore, fr fr. π
π AUTHOR π
this module was written by Jeffrey William Baker <jwbaker@acm.org>. king behavior, we stan a credited author. π«Ά
π SEE ALSO π
go read these too, bestie, they're the extended universe:
Apache::Session::FileApache::Session::FlexApache::Session::DB_FileApache::Session::PostgresApache::Session
heads up: this page is perl v5.36.0 coded and dated 2022-11-19, so if something looks vintage, that's because it is. still slaying though. π
mwah, go tie some hashes, you've got this. π§π
π¦ where this page comes from
- debian bookworm: libapache-session-perl 1.94-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libapache-session-perl 1.94-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libapache-session-perl 1.94-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libapache-session-perl 1.94-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libapache-session-perl 1.94-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms