Data-Session
view release on metacpan or search on metacpan
lib/Data/Session/Driver/SQLite.pm view on Meta::CPAN
Specifes the name of the sessions table.
This key is normally passed in as Data::Session -> new(table_name => $string).
Default: 'sessions'.
This key is optional.
=item o username => $string
Specifies the username (as used by
DBI -> connect($data_source, $username, $password, $data_source_attr) ) to obtain a database handle.
This key is normally passed in as Data::Session -> new(username => $string).
Default: ''.
This key is optional.
=item o verbose => $integer
Print to STDERR more or less information.
Typical values are 0, 1 and 2.
This key is normally passed in as Data::Session -> new(verbose => $integer).
This key is optional.
=back
=head1 Method: remove($id)
Deletes from storage the session identified by $id, or dies if it can't.
Returns 1.
=head1 Method: retrieve($id)
Retrieve from storage the session identified by $id, or dies if it can't.
Returns the session.
This is a frozen session. This value must be thawed by calling the appropriate serialization
driver's thaw() method.
L<Data::Session> calls the right thaw() automatically.
=head1 Method: store($id => $data)
Writes to storage the session identified by $id, together with its data $data, or dies if it can't.
Returns 1.
=head1 Method: traverse()
Retrieves all ids from the sessions table, and for each id calls the supplied subroutine with the id
as the only parameter.
$dbh -> selectall_arrayref is used, and the table is not locked.
Returns 1.
=head1 Support
Log a bug on RT: L<https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Session>.
=head1 Author
L<Data::Session> was written by Ron Savage I<E<lt>ron@savage.net.auE<gt>> in 2010.
Home page: L<http://savage.net.au/index.html>.
=head1 Copyright
Australian copyright (c) 2010, Ron Savage.
All Programs of mine are 'OSI Certified Open Source Software';
you can redistribute them and/or modify them under the terms of
The Artistic License, a copy of which is available at:
http://www.opensource.org/licenses/index.html
=cut
( run in 0.790 second using v1.01-cache-2.11-cpan-39bf76dae61 )