1Dancer::Session::YAML(3U)ser Contributed Perl DocumentatiDoanncer::Session::YAML(3)
2
3
4
6 Dancer::Session::YAML - YAML-file-based session backend for Dancer
7
9 version 1.3513
10
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 transparent session storage for the developer.
15
16 This backend is intended to be used in development environments, when
17 looking inside a session can be useful.
18
19 It's not recommended to use this session engine in production
20 environments.
21
23 The setting session should be set to "YAML" in order to use this
24 session engine in a Dancer application.
25
26 Files will be stored to the value of the setting "session_dir", whose
27 default value is "appdir/sessions".
28
29 Here is an example configuration that use this session engine and
30 stores session files in /tmp/dancer-sessions
31
32 session: "YAML"
33 session_dir: "/tmp/dancer-sessions"
34
36 reset
37 To avoid checking if the sessions directory exists every time a new
38 session is created, this module maintains a cache of session
39 directories it has already created. "reset" wipes this cache out,
40 forcing a test for existence of the sessions directory next time a
41 session is created. It takes no argument.
42
43 This is particularly useful if you want to remove the sessions
44 directory on the system where your app is running, but you want this
45 session engine to continue to work without having to restart your
46 application.
47
49 This module depends on YAML.
50
52 This module has been written by Alexis Sukrieh, see the AUTHORS file
53 for details.
54
56 See Dancer::Session for details about session usage in route handlers.
57
59 This module is copyright (c) 2009 Alexis Sukrieh <sukria@sukria.net>
60
62 This module is free software and is released under the same terms as
63 Perl itself.
64
66 Dancer Core Developers
67
69 This software is copyright (c) 2010 by Alexis Sukrieh.
70
71 This is free software; you can redistribute it and/or modify it under
72 the same terms as the Perl 5 programming language system itself.
73
74
75
76perl v5.32.0 2020-07-28 Dancer::Session::YAML(3)