Thursday, July 2, 2009

Re: fixed: space after ?> tag (Was also: output_buffering FTW (Was: Auth session getting destroyed?))

Just a note, you dont need ?> at the end of your php files. The file
will work the same regardless, and you wont run into these problems.

On Jul 2, 1:41 pm, GravyFace <gravyf...@gmail.com> wrote:
> For the love of ---
>
> Anyways, it's working now.
>
> /me downs beer in triumph, shakes fist at sky.
>
> On Thu, Jul 2, 2009 at 4:07 PM, GravyFace<gravyf...@gmail.com> wrote:
> > So while trying to setup Zend Debugger (another epic fail, sigh), one
> > of the tutorials I found recommended two settings in php.ini:
>
> > implicit_flush = On
> > output_buffering = On
>
> > 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).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: