1Dancer2::Session::YAML(U3s)er Contributed Perl DocumentatDiaonncer2::Session::YAML(3)
2
3
4

NAME

6       Dancer2::Session::YAML - YAML-file-based session backend for Dancer2
7

VERSION

9       version 0.400000
10

DESCRIPTION

12       This module implements a session engine based on YAML files. Session
13       are stored in a session_dir as YAML files. The idea behind this module
14       was to provide a human-readable session storage for the developer.
15
16       This backend is intended to be used in development environments, when
17       digging inside a session can be useful.
18
19       This backend can perfectly be used in production environments, but two
20       things should be kept in mind: The content of the session files is in
21       plain text, and the session files should be purged by a CRON job.
22

CONFIGURATION

24       The setting session should be set to "YAML" in order to use this
25       session engine in a Dancer2 application.
26
27       Files will be stored to the value of the setting "session_dir", whose
28       default value is "appdir/sessions".
29
30       Here is an example configuration that use this session engine and
31       stores session files in /tmp/dancer-sessions
32
33           session: "YAML"
34
35           engines:
36             session:
37               YAML:
38                 session_dir: "/tmp/dancer-sessions"
39                 cookie_duration: 3600    # Default cookie timeout in seconds
40

DEPENDENCY

42       This module depends on YAML.
43

SEE ALSO

45       See Dancer2::Core::Session for details about session usage in route
46       handlers.
47

AUTHOR

49       Dancer Core Developers
50
52       This software is copyright (c) 2022 by Alexis Sukrieh.
53
54       This is free software; you can redistribute it and/or modify it under
55       the same terms as the Perl 5 programming language system itself.
56
57
58
59perl v5.36.0                      2022-07-22         Dancer2::Session::YAML(3)
Impressum