Dancer2...:Simple(3)
π Dancer2::Session::Simple β the manual, but make it bestie π
okay so this is the <pink>Dancer2::Session::Simple</pink> page, from the User Contributed Perl Documentation collection, and it's literally one of those tiny modules that does exactly one thing and does it cutely. no cap. let's get into it π
β¨ NAME β¨
Dancer2::Session::Simple β in-memory session backend for Dancer2 π§ β¨
πΈ VERSION πΈ
version 2.2.1
π¦ DESCRIPTION π¦
so this module implements a very simple session backend, and the whole personality trait is that it holds all session data in memory. that's the vibe. that's the whole vibe.
which means β and bestie, listen β sessions are volatile. the second the process exits, they're gone. poof. not coming back. π no persistence, no storage, no memories of what you did last summer.
this module is likely to be most useful for testing purposes. it's the little guy you bring out when you just need something to work in a test and you don't want a whole database situation. iconic behavior honestly.
π¨ DISCLAIMER π¨
bestie. no. this session factory should not be used in production. i'm saying it with my whole chest.
it is only for single-process application workers. because the session objects are stored in-memory, they cannot be shared among multiple workers. like at all. the other workers can't see them. they're not invited. π
so: one process, one vibe, that's it.
π CONFIGURATION π
the setting session should be set to "Simple" in order to use this session engine in a Dancer2 application. that's the whole config. slay. β¨
π SEE ALSO π
See Dancer2::Core::Session for details about session usage in route handlers. go read that one if you want the full lore on how sessions actually work inside your routes π«Ά
π AUTHOR π
Dancer Core Developers π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026 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.
and that's the whole page, fr fr π this was perl v5.42.3, dated 2026-09-20, and the page was <rainbow>Dancer2...:Simple(3)</rainbow> the entire time β now go forth and only use this in testing, bestie, i'm begging ππ
π¦ where this page comes from
- fedora 44: perl-Dancer2 2.2.1-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms