[Catalyst] Using a session in catalyst

Balaji Srinivasan balajione at gmail.com
Tue Jan 24 02:39:19 CET 2006


Thanks a lot. This worked.
I guess I was using the wrong store. Now it works. Thanks to everyone for
their help
Balaji

On 1/23/06, Yuval Kogman <nothingmuch at woobling.org> wrote:
>
> Hi,
>
>         package MyApp;
>
>         use Catalyst qw/
>                 Session
>                 Session::Store::FastMmap
>                 Session::State::Cookie
>         /;
>
> Note, this is *NOT* Session::FastMmap - an older plugin.
>
> Then just say
>
>         $c->session->{foo}
>
> to acccess the data. Note that this is not $c->{session}{foo} or
> anything like that - use the method call or it won't work.
>
> As for $c->session->{user} = $username - there's
> Catalyst::Plugin::Authentication for all that.
>
> The relevant introductory material is:
>
>         http://catalyst.perl.org/calendar/2005/15
>
> And then for the $username stuff:
>
>         http://catalyst.perl.org/calendar/2005/14
>
> Please pay more attention to the documentation before posting. It is
> evident from your posts that you guys are pretty much just skimming.
>
> --
> ()  Yuval Kogman <nothingmuch at woobling.org> 0xEBD27418  perl hacker &
> /\  kung foo master: /me climbs a brick wall with his fingers: neeyah!
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060123/ab369816/attachment.htm


More information about the Catalyst mailing list