Data::...:UUID64(3pm)
β¨ Data::Session::ID::UUID64 β¨
okay so bestie, welcome to the manual page for Data::Session::ID::UUID64 β it's a persistent session manager plugin, and it lives in the User Contributed Perl Documentation corner of your perl install. Let's get into it π
πΈ NAME πΈ
Data::Session::ID::UUID64 β a persistent session manager. that's it, that's the name, she's lowkey self-explanatory π«Ά
π¦ Synopsis π¦
See Data::Session for details. fr fr, that's the whole synopsis, go read the main one.
β¨ Description β¨
Data::Session::ID::UUID64 lets Data::Session generate session ids using Data::UUID. iconic collab honestly.
To use this module do this:
- Specify an id generator of type
UUID64, like so:Data::Session -> new(type => '... id:UUID64 ...')
Note: the uuid will be 24 (sic) bytes because that's the number of bytes in a UUID64 digest. yes, 24. no, we're not debating it. the (sic) is staying, it's part of the lore π
See scripts/digest.pl. π
π Case-sensitive Options π
See "Case-sensitive Options" in Data::Session for important information. this is not a drill, go read it.
π Method: new() π
Creates a new object of type Data::Session::ID::UUID64. main character energy, born fresh every time.
new() takes a hash of key/value pairs, some of which might be mandatory. Further, some combinations might be mandatory. so like, read the vibes carefully.
The keys are listed here in alphabetical order. (we love a tidy list β¨)
They are lower-case because they are (also) method names, meaning they can be called to set or get the value at any time. dual purpose, she contains multitudes.
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. no cap, she will literally just die π
The algorithm is Data::UUID -> new -> create_b64.
Returns the new id.
Warning: you should <strong>never</strong> try to use'driver:File;id:UUID64;...', since the ids generated by this module sometimes contain'/', which the code forbids to be part of a file name. that's a whole mess, don't do it, i'm begging π
π Method: id_length() π
Returns 24 (sic) because that's the number of bytes in a UUID64 digest. she said what she said.
This can be used to generate the SQL to create the sessions table. very useful, very slay.
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. legend behaviour, honestly.
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
okay that's the whole page, you ate it, go forth and generate some session ids πβ¨ this was perl v5.36.0, dated 2023-02-14, and it's the Data::Session::ID::UUID64(3pm) page from the User Contributed Perl Documentation β periodt π
π¦ 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