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 πŸ‘€

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

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