CGI::Mungo::Session - Session class
my $s = $mungo->getSession(); $s->setVar('name', 'value'); my $var = $s->getVar('name');
Class to deal with session management.
$s->setVar('name', 'value');
Takes two arguments, first the name of the variable then the value of the variable to store.
$response = $wf->getResponse(); my $hashref = { username => "bob" }; $s->create($hashref, $response);
Creates a new session for the visitor.
This saves the contents of the given hash reference into the session.
The correct Set-Cookie header will be issued through the provided CGI::Mungo::Response object.
Remove the current session from memory, disk and expire it in the browser.
MacGyveR <dumb@cpan.org>
Development questions, bug reports, and patches are welcome to the above address
Copyright (c) 2012 MacGyveR. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CGI::Mungo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Mungo
CPAN shell
perl -MCPAN -e shell install CGI::Mungo
For more information on module installation, please visit the detailed CPAN module installation guide.