Apache...QLite3(3pm)
π Apache::Session::SQLite3 β the man page, but make it cute π
okay bestie, so this is the man page for Apache::Session::SQLite3(3pm) β yes the header truncates it to Apache...QLite3(3pm) because man pages are dramatic like that, but you and me both know the real name. let's get into it π«Ά
β¨ NAME β¨
Apache::Session::SQLite3 β use DBD::SQLite 1.x for Apache::Session storage π
β¨ VERSION β¨
This doc describes version 0.03 of Apache::Session::SQLite3, released February 2, 2005. vintage. iconic. a little elder-millennial but we respect her π
β¨ SYNOPSIS β¨
the vibe check, in code:
use Apache::Session::SQLite3;
tie %hash, 'Apache::Session::SQLite3', $id, {
DataSource => 'dbi:SQLite:dbname=/tmp/session.db'
};
# to purge all sessions older than 30 days, do this:
tied(%hash)->{object_store}{dbh}->do(qq[
DELETE FROM Sessions WHERE ? > LastUpdated
], {}, time - (30 * 86400));
so you tie a hash, you point it at your SQLite file, and boom β sessions. and if you want to clear out the old ones, that last bit is literally how you do it. no cap. π¦
β¨ DESCRIPTION β¨
okay so. this module is an implementation of Apache::Session. she's giving "backing store" energy. it uses the DBD::SQLite backing store π
important bestie: it requires DBD::SQLite version 1.00 or above β that's because it uses the SQLite3 API for BLOB support. so if you're rocking something ancient, no BLOB for you. π
also, an extra "LastUpdated" field gets populated with the current "time()". she keeps receipts. β
and the best part: there is no need to create the data source file beforehand β this module creates the "session" table automatically. it's giving main character energy, it sets itself up π
β¨ AUTHOR β¨
Autrijus Tang <autrijus@autrijus.org> πΈ
β¨ COPYRIGHT β¨
Copyright 2004, 2005 by Autrijus Tang <autrijus@autrijus.org>. π
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html> π
β¨ SEE ALSO β¨
Apache::SessionπApache::Session::SQLiteπDBD::SQLiteπ¦
and that's the whole page bestie, you ate it. β¨ this little doc came from perl v5.34.0, dated 2022-06-06, filed under that Apache...QLite3(3pm) name at the bottom of every page β periodt, go tie some sessions ππΈπ
π¦ where this page comes from
- debian bookworm: libapache-session-sqlite3-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libapache-session-sqlite3-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libapache-session-sqlite3-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libapache-session-sqlite3-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libapache-session-sqlite3-perl 0.03-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