[Catalyst] Plugin::Session lazy start

Ashley Pond V apv at sedition.com
Wed May 23 13:54:19 GMT 2012


On Wed, May 23, 2012 at 1:58 AM, Dag-Erling Smørgrav <des at des.no> wrote:
> As an alternate solution, is there a way to have it use a different file
> name every time it starts?

Here's a snippet to do that:

conf.yml
--
Plugin::Session:
  storage: /tmp/some-prefix-__UID__.session

MyApp.pm
--
                     "Plugin::ConfigLoader" => {
                         substitutions => {
                             UID => sub { $< },
                         },
                     },

https://metacpan.org/module/Catalyst::Plugin::ConfigLoader



More information about the Catalyst mailing list