Apache...ongoDB(3pm)
π Apache::Session::MongoDB π
okay so bestie, gather round π«Ά this is Apache::Session::MongoDB β a User Contributed Perl Documentation page, no cap. It's an implementation of Apache::Session, which is the thing that handles your session data for you. Think of it as the group chat that never forgets what you said last periodt π
β¨ NAME β¨
Apache::Session::MongoDB β literally an implementation of Apache::Session. That's the whole job. She's got one role and she's serving it. π
β¨ SYNOPSIS β¨
here's how you pull up, bestie:
use Apache::Session::MongoDB;
# Using localhost server
tie %hash, 'Apache::Session::MongoDB', $id, {};
# Example with default values
tie %hash, 'Apache::Session::MongoDB', $id, {
host => 'locahost:27017',
db_name => 'sessions',
collection => 'sessions',
};
so you use the module, you tie a hash with your $id and a config hash, and boom β sessions. The second example shows what the defaults look like all laid out. π
ngl that first example with {} is the "just let her cook" option β everything defaults, no notes.
β¨ DESCRIPTION β¨
This module is an implementation of Apache::Session. It uses the MongoDB backing store and no locking. That's it, that's the vibe. πΈ
highkey important: no locking means she's not gonna babysit concurrent access for you β that's just how she is. iykyk π¦
β¨ PARAMETERS β¨
You can set the following parameters, and you've got a whole lil roster to choose from:
hostdb_namecollectionauth_mechanismauth_mechanism_propertiesconnect_timeout_mssslusernamepassword
See MongoDB for more π β she's not gonna explain every single one here, the MongoDB docs are the main character for that part.
not me telling you to go read another manpage but like... go read the other manpage bestie π
β¨ SEE ALSO β¨
MongoDBApache::Session
β¨ AUTHOR β¨
Xavier Guimard, <x.guimard@free.fr> β legend behavior fr fr ππ
β¨ COPYRIGHT AND LICENSE β¨
Copyright (C) 2015-2016 by Xavier Guimard, <x.guimard@free.fr>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
so basically: free software, same terms as Perl, 5.10.0 or whatever newer 5 you've got. slay π
aaaand that's the whole page, bestie π this was perl v5.36.0, dated 2022-08-28, and the source files it lives in are the User Contributed Perl Documentation β mwah, go tie some hashes, ily π«Άβ¨
π¦ where this page comes from
- ubuntu noble: libapache-session-mongodb-perl 0.23-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libapache-session-mongodb-perl 0.23-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libapache-session-mongodb-perl 0.23-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