Dancer...n::YAML(3pm)
π Dancer::Session::YAML π
okay bestie, so this is Dancer::Session::YAML β the YAML-file-based session backend for Dancer β¨ fr fr, it's part of the User Contributed Perl Documentation, and she's sitting at version 1.3522 π
πΈ NAME πΈ
Dancer::Session::YAML β YAML-file-based session backend for Dancer π
β¨ VERSION β¨
version 1.3522
π¦ DESCRIPTION π¦
So basically this module is a whole session engine built on top of YAML files π Sessions get stored in a session_dir as YAML files β like, the whole point of this module was to give the developer a transparent session storage. Nothing hidden, nothing sneaky, you can literally peek inside π
The tea is: this backend is meant for development environments, when looking inside a session is actually useful π
ngl tho β it's genuinely NOT recommended to use this session engine in production environments. Like, at all. Take that warning seriously, bestie π
π CONFIGURATION π
For your Dancer app to use this session engine, you gotta set the session setting to "YAML" β no cap, that's the switch β¨
Your files get stored to whatever value the session_dir setting holds, and its default value is appdir/sessions π
Here's an example config that uses this session engine and stores session files in /tmp/dancer-sessions:
session: "YAML"
session_dir: "/tmp/dancer-sessions"
π METHODS π
π reset
So here's the vibe: instead of checking whether the sessions directory exists every single time a new session is created, this module keeps a cache of session directories it's already created π reset wipes that cache out, forcing a test for existence of the sessions directory the next time a session is created. It takes no argument β zero, nada, none π«Ά
And the way this is particularly useful is if you wanna remove the sessions directory on the system where your app is running, but you still want this session engine to keep working without having to restart your entire application π iconic behaviour honestly
β DEPENDENCY β
This module depends on YAML.
π AUTHOR π
This module has been written by Alexis Sukrieh, see the AUTHORS file for details.
π₯ SEE ALSO π₯
See Dancer::Session for details about session usage in route handlers π
πΈ COPYRIGHT πΈ
This module is copyright (c) 2009 Alexis Sukrieh <sukria@sukria.net>
π§ LICENSE π§
This module is free software and is released under the same terms as Perl itself β¨
π AUTHOR π
Dancer Core Developers
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2010 by Alexis Sukrieh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself π
okay that's the whole page, you ate it, periodt π
this was served up from perl v5.40.1 on 2026-05-05, under the manual page Dancer...n::YAML(3pm) β go forth and session responsibly, bestie π«Άπ
π¦ where this page comes from
- ubuntu stonking: libdancer-perl 1.3522-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms