[Catalyst] Plugin::Session lazy start

Alexander Hartmaier alexander.hartmaier at t-systems.at
Wed May 23 14:42:25 GMT 2012


Because I've just read perlvar: $REAL_USER_ID or $UID instead of $<.

- Alex


Am 2012-05-23 15:54, schrieb Ashley Pond V:
> 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
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/


*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*



More information about the Catalyst mailing list