NAME

CGI::Mungo::Session - Session class

SYNOPSIS

        my $s = $mungo->getSession();
        $s->setVar('name', 'value');
        my $var = $s->getVar('name');

DESCRIPTION

Class to deal with session management.

METHODS

setVar()

        $s->setVar('name', 'value');

Takes two arguments, first the name of the variable then the value of the variable to store.

create()

        $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.

delete()

Remove the current session from memory, disk and expire it in the browser.

Notes

Author

MacGyveR <dumb@cpan.org>

Development questions, bug reports, and patches are welcome to the above address

Copyright

Copyright (c) 2013 MacGyveR. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.