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 to STDERR more or less information. ๐ŸŒธ Typical values are 0, 1 and 2. This key is normally passed in as Data::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.


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