The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Apache::Session::MongoDB - An implementation of Apache::Session

SYNOPSIS

use Apache::Session::MondoDB;

# Using localhost server
tie %hash, 'Apache::Session::MongoDB', $id, {};

# More args:
tie %hash, 'Apache::Session::MongoDB', $id, {
   Host     => 'locahost:27017',
   database => 'sessions',
   # Set here any MongoDB::new() arg
   # Note that :
   #  - 'db_name' is called 'admin_db' to avoid confusion with 'database'
   #  - 'database' is set by default to 'sessions'
};

DESCRIPTION

This module is an implementation of Apache::Session. It uses the MongoDB backing store and no locking. See the example, and the documentation for Apache::Session::Store::MongoDB for more details.

SEE ALSO

Apache::Session

AUTHOR

Xavier Guimard, <x.guimard@free.fr>

COPYRIGHT AND LICENSE

Copyright (C) 2015 by Xavier Guimard, <x.guimard@free.fr>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.