Dancer2::Session::JSON - Dancer 2 session storage in files with JSON
version 0.003
This module implements Dancer 2 session engine based on JSON files.
This backend can be used in single-machine production environments, but two things should be kept in mind: The content of the session files is not encrypted or protected in anyway and old session files should be purged by a CRON job.
The setting session should be set to JSON in order to use this session engine in a Dancer2 application.
JSON
Files will be stored to the value of the setting session_dir, whose default value is appdir/sessions.
session_dir
appdir/sessions
Here is an example configuration that use this session engine and stores session files in /tmp/dancer-sessions
session: "JSON" engines: session: JSON: session_dir: "/tmp/dancer-sessions"
Please report any bugs or feature requests through the issue tracker at https://github.com/PerlDancer/dancer2-session-json/issues. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/PerlDancer/dancer2-session-json
git clone https://github.com/PerlDancer/dancer2-session-json.git
David Golden <dagolden@cpan.org>
Jason A. Crome <jason@crome-plated.com>
Sawyer X <xsawyerx@cpan.org>
This software is Copyright (c) 2013 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Dancer2::Session::JSON, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Session::JSON
CPAN shell
perl -MCPAN -e shell install Dancer2::Session::JSON
For more information on module installation, please visit the detailed CPAN module installation guide.