Data::...D::MD5(3pm)
๐ Data::Session::ID::MD5 ๐
okay so bestie, welcome to the manual page for Data::Session::ID::MD5 (that's the Data::...D::MD5(3pm) one, in case the terminal header was squinting at you) ๐ it's a persistent session manager, and honestly? it's giving quiet little workhorse and we love her for it ๐
โจ NAME โจ
Data::Session::ID::MD5 โ a persistent session manager ๐ฆ
โจ Synopsis โจ
See Data::Session for details. that's it, that's the synopsis, she's lowkey mysterious like that ๐
โจ Description โจ
Data::Session::ID::MD5 lets Data::Session generate session ids using Digest::MD5. yes ma'am, MD5 doin' the heavy lifting ๐ฅ
To use this module do this:
- Specify an id generator of type MD5, as
Data::Session -> new(type => '... id:MD5 ...')
periodt. that's the whole vibe check โ
โจ Case-sensitive Options โจ
See "Case-sensitive Options" in Data::Session for important information. ngl bestie, this one matters โ go read it, i'm not even playing ๐ญ
โจ Method: new() โจ
Creates a new object of type Data::Session::ID::MD5. new object, who dis ๐
new() takes a hash of key/value pairs, some of which might mandatory. Further, some combinations might be mandatory. (yes, some combos are mandatory-mandatory, it's giving โจcommitmentโจ)
The keys are listed here in alphabetical order.
They are lower-case because they are (also) method names, meaning they can be called to set or get the value at any time. so you can literally just... ask her. iconic behavior fr fr ๐
verbose => $integerโ Print toSTDERRmore or less information. ๐ธ Typical values are0,1and2. This key is normally passed in asData::Session -> new(verbose => $integer). This key is optional.
โจ Method: generate() โจ
Generates the next session id, or dies if it can't ๐ (dramatic but fair).
The algorithm is Digest::MD5 -> new -> add($$, time, rand(time) ) -> hexdigest.
Returns the new id. slay ๐
โจ Method: id_length() โจ
Returns 32 because that's the number of hex digits in a MD5 digest. thirty-two, no cap ๐งฎโจ
This can be used to generate the SQL to create the sessions table. very handy, very main character energy ๐
See scripts/digest.pl.
โจ Support โจ
Log a bug on RT: https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Session. ๐ซถ
โจ Author โจ
Data::Session was written by Ron Savage <ron@savage.net.au> in 2010. ๐
Home page: http://savage.net.au/index.html.
โจ Copyright โจ
Australian copyright (c) 2010, Ron Savage. ๐
All Programs of mine are 'OSI Certified Open Source Software';
you can redistribute them and/or modify them under the terms of
The Artistic License, a copy of which is available at:
http://www.opensource.org/licenses/index.html
and that's a wrap bestie ๐ this lil page came to you courtesy of perl v5.36.0, dated 2023-02-14 โ yes, valentine's day, because she's a romantic like that ๐ go forth and generate some sessions, mwah ๐
๐ฆ where this page comes from
- debian trixie: libdata-session-perl 1.18-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdata-session-perl 1.18-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdata-session-perl 1.18-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdata-session-perl 1.18-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