[Catalyst] Using a session in catalyst
Balaji Srinivasan
balajione at gmail.com
Mon Jan 23 23:25:50 CET 2006
Ok I got a bit further now. I realized that these use statements should be
in my main app.pm file. Once i put it there, it creates a session file. It
also seems to be sending the session ID back to the browser as a cookie. How
do I store things in this session? If i do $c->session->{X} It gives me an
error. I printed out the value of $c->{session} and its a different hash
everytime.
What am I doing wrong here?
THanks for all your help
Balaji
On 1/23/06, John Lifsey - Contractor - <john.lifsey at nrl.navy.mil> wrote:
>
> Would be a better idea to use the newer Session modules.
>
> C::P::Session
> C::P::Session::State::Cookie
> C::P::Session::Store::Fastmap
>
>
>
>
> Balaji Srinivasan wrote:
> > Hi Everyone
> > I installed Catalyst::Plugin::Session,
> Catalyst::Plugin::Session::FastMap
> > Based on the instructions for Catalyst::Plugin::Session, i tried using
> > $c->session in my method. It gives me the following error:
> > Can't locate object method "session" via package "MyApp"
> > Any idea why this is?
> > Thanks
> > Balaji
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Catalyst mailing list
> > Catalyst at lists.rawmode.org
> > http://lists.rawmode.org/mailman/listinfo/catalyst
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060123/132a63ea/attachment.htm
More information about the Catalyst
mailing list