The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MojoX::Session::Store::Rose - Rose::DB::Object Store for MojoX::Session

VERSION

Version 0.01

SYNOPSIS

    CREATE TABLE session (
        sid          VARCHAR(40) PRIMARY KEY,
        data         TEXT,
        expires      INTEGER UNSIGNED NOT NULL,
        UNIQUE(sid)
    );

        my $session = MojoX::Session->new( 
                store => MojoX::Session::Store::Rose->new( class => 'My::DB::Session' ), 
                ... 
        );

DESCRIPTION

MojoX::Session::Store::Rose is a store for MojoX::Session that stores a session in a database using Rose::DB::Object.

ATTRIBUTES

MojoX::Session::Store::DBIC implements the following attributes.

class

    my $class = $store->class;
    $class    = $store->class(class);

Get and set Rose::RB::Object class.

sid_column

Session id column name. Default is 'sid'.

expires_column

Expires column name. Default is 'expires'.

data_column

Data column name. Default is 'data'.

METHODS

MojoX::Session::Store::Rose inherits all methods from MojoX::Session::Store.

create

Insert session to database.

update

Update session in database.

load

Load session from database.

delete

Delete session from database.

AUTHOR

Sascha Kiefer, <perl at intertivity.com>

BUGS

Please report any bugs or feature requests to bug-mojox-session-store-rose at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MojoX-Session-Store-Rose. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc MojoX::Session::Store::Rose

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2010 Sascha Kiefer.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.