1Maypole::Session(3) User Contributed Perl Documentation Maypole::Session(3)
2
3
4
6 Maypole::Session - Session related functionality for maypole
7
9 use Maypole::Session;
10
11 my $uid = Maypole::Session::generate_unique_id()
12
14 This class provides session related methods for Maypole such as unique
15 id's for requests.
16
17 Currently it provides only the generate_unique_id() function, by
18 checking the id's generated by this function and included in submitted
19 forms, it is possible to see if a form has been submitted before..
20 implementing these checks is left to the developer of that application.
21
22 Further functionality is to be added here in later versions to provide
23 easy access to sessions, either through plugins or builtin methods.
24
26 generate_unique_id()
27 my $uid = Maypole::Session::generate_unique_id()
28
29 generates a unique id and returns it, requires no arguments but accepts
30 size, default is 32.
31
33 Currently implementing uniqueness tests of form submissions is left to
34 the Maypole user, we plan to provide an optional default behaviour to
35 automate this if required.
36
38 Maypole
39
41 Aaron Trevena, c<teejay@droogs.org>
42
44 Simon Cozens, "simon@cpan.org"
45
47 You may distribute this code under the same terms as Perl itself.
48
49
50
51perl v5.32.1 2021-01-27 Maypole::Session(3)