Maypole::Session(3)
β¨ Maypole::Session β¨
okay so bestie, welcome to Maypole::Session π β this is the User Contributed Perl Documentation page for it, and it's literally the session-related functionality for Maypole. that's the whole vibe. π
πΈ NAME πΈ
Maypole::Session β session related functionality for maypole π«Ά
π¦ SYNOPSIS π¦
use Maypole::Session;
my $uid = Maypole::Session::generate_unique_id()
like, that's it. that's the whole entry point rn. β¨
π DESCRIPTION π
so this class is the one that hands Maypole its session related methods β stuff like unique id's for requests. very demure, very mindful. π
currently it provides only the generate_unique_id() function. and here's the lowkey genius part: by checking the id's generated by this function and included in submitted forms, it's possible to see if a form has been submitted before. π΅οΈβοΈ
but fr fr β implementing these checks is left to the developer of that application. the module gives you the id, the actual checking is on you, bestie. no cap. π
further functionality is to be added here in later versions to provide easy access to sessions, either through plugins or builtin methods. so like... watch this space. π
π FUNCTIONS π
π generate_unique_id()
my $uid = Maypole::Session::generate_unique_id()
generates a unique id and returns it. that's the whole job description. π
- it requires no arguments β zero, nada, nothing, she's independent π
- but it does accept
size - and the default is
32
so if you just call it bare, you get a 32-sized unique id. iconic behaviour honestly. β¨
π§ TODO π§
currently, implementing uniqueness tests of form submissions is left to the Maypole user. which is to say β it's giving "you do it". π
but good news: they plan to provide an optional default behaviour to automate this if required. so one day it might just... happen for you. π
π SEE ALSO π
- Maypole
(the mothership. the origin story. go read her too.) π
π MAINTAINER π
Aaron Trevena, c<teejay@droogs.org>
π AUTHOR π
Simon Cozens, "simon@cpan.org"
πΈ LICENSE πΈ
You may distribute this code under the same terms as Perl itself. periodt. π
okay and one lil sign-off because you deserve it: this page came to you from perl v5.42.0, dated 2025-07-25, and honestly? she ate. go generate some unique ids bestie, you got this πβ¨π¦π
π¦ where this page comes from
- fedora 43: perl-Maypole 1:2.13-46.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms