PEF::Front::Session - Session data object
my $session = PEF::Front::Session->new($context->{request}); if ($session->data->{name}) { $name = $session->data->{name}; $is_author = $session->data->{is_author}; }
This module allows you to easily create sessions , store data in them and later retrieve that information. It uses Storable for data serialisation.
Makes new session object. $key is unique string or request object. If it is empty or omitted then it will be generated. If $key is a request object then it will be looked in request parameters and then in cookies for cfg_session_request_field to get the key.
cfg_session_request_field
Loads session data associated with the key.
Stores session data associated with the key. You don't need to call it usually, only when you want to synchronize data with storage.
Destroys session data associated with the key.
Returns session key.
Returns and optionaly sets session data hash.
This module was written and is maintained by Anton Petrusevich.
Copyright (c) 2016 Anton Petrusevich. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install PEF::Front, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PEF::Front
CPAN shell
perl -MCPAN -e shell install PEF::Front
For more information on module installation, please visit the detailed CPAN module installation guide.