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

2009-07-02 Thread GravyFace

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, GravyFacegravyf...@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, GravyFacegravyf...@gmail.com wrote:
 On Wed, Jul 1, 2009 at 12:26 PM, dgwhumi...@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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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

2009-07-02 Thread Miles J

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, GravyFacegravyf...@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, GravyFacegravyf...@gmail.com wrote:
  On Wed, Jul 1, 2009 at 12:26 PM, dgwhumi...@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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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

2009-07-02 Thread GravyFace

Yes, I realize that now (and vaguely recall reading about this a while
ago).  Perhaps cake bake should be patched to do the same?  I just
baked another controller and while the spaces weren't there, the ?
was.
I'm sure it was me somehow who put that in (I've been shuffling around
using a Mac and two different IDEs on Windows for the same project),
but without the end tag, these kinds of bugs can be avoided.


On Thu, Jul 2, 2009 at 5:00 PM, Miles Jmileswjohn...@gmail.com wrote:

 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, GravyFacegravyf...@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, GravyFacegravyf...@gmail.com wrote:
  On Wed, Jul 1, 2009 at 12:26 PM, dgwhumi...@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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---