Give the ol' login another try and it works. So I figure I must've
removed the Auth component during one of my many many attempts at
resolving this issue, but nope, it's there. Turns out that unless
output_buffering is On, Auth session key doesn't persist between
requests. Works fine now. Any comment on this? Everyone else have
this set to 'On'? I'm on Ubuntu 9.04 at the home office and Ubuntu
6.06 on the test server and both were set to off by default I'm
assuming.
On Wed, Jul 1, 2009 at 2:18 PM, GravyFace<gravyf
...@gmail.com> wrote:
> On Wed, Jul 1, 2009 at 12:26 PM, dgw<humi
...@gmail.com> wrote:
>>> Using the Developer add-on for Firefox, the session cookie is still
>>> there (same one as well), just cannot retrieve Auth.User from the
>>> session, only when I first authenticate (POST).
>> Have you tried reading that data with $this->Auth->user();
> I'm doing a pr($_SESSION); there's no Auth key beyond when it first
> gets set in AuthComponent->login -- i.e. if I make a GET request to
> any other controller and spit out pr($_SESSION) in any other action
> (including calling GET on /users/login again; I've set autoRedirect to
> false), it's immediately gone. $_SESSION itself seems to be intact --
> there's a [_Token] key consistently, but I just don't see why it's
> not persisting beyond the initial set when POSTing (logging in).