[Catalyst] Session example from Tutorial.pod doesn't work?

catalyst rbroom+catalyst at rbroom.com
Thu Feb 2 18:15:34 CET 2006


> We had a problem like that recently. Are you possibly setting
> YourApp->config *after* calling ->setup? that caused problems when
> the default values (which are filled in at setup time) are zapped.

Nope, config() then setup().

> Please attach logs if this is not the case

  [Tue Jan 31 05:25:48 2006] [catalyst] [debug] **********************************
  [Tue Jan 31 05:25:48 2006] [catalyst] [debug] * Request 6 (0.013/s) [17708]
  [Tue Jan 31 05:25:48 2006] [catalyst] [debug] **********************************
  [Tue Jan 31 05:25:48 2006] [catalyst] [debug] Found sessionid "658591c87927791bc15cc2b731950bee09876317" in cookie
  [Tue Jan 31 05:25:48 2006] [catalyst] [debug] "GET" request for "users/login" from "192.168.1.100"
  [Tue Jan 31 05:25:48 2006] [catalyst] [debug] Path is "users/login"
  [Tue Jan 31 05:25:48 2006] [catalyst] [debug] Restored session "658591c87927791bc15cc2b731950bee09876317"
  [Tue Jan 31 05:25:48 2006] [catalyst] [debug] Can't login a user without a user object or user ID param
  [Tue Jan 31 05:25:48 2006] [catalyst] [debug] Rendering template "userlogin.tt"
  [Tue Jan 31 05:25:48 2006] [catalyst] [info] Request took 0.082784s (12.080/s)
  .------------------------------------------------------------------+-----------.
  | Action                                                           | Time      |
  +------------------------------------------------------------------+-----------+
  | /users/login                                                     | 0.000821s |
  | /end                                                             | 0.008623s |
  |  -> tutorial::View::TToolkit->process                            | 0.004060s |
  '------------------------------------------------------------------+-----------'


> > What's more, when I look at
> > 
> >   Catalyst::Plugin::Authentication::Credential::Password::login()
> >
> > I don't see any way that it could be using a session.

> That part happens in
> Catalyst::Plugin::Authentication::set_authenticated, a generic
> method for marking a user as authenticated.

Ah, thanks.

---
Rodney Broom




More information about the Catalyst mailing list