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 πŸ’œ


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