Ok so session management wasn't working at all before as I tested it
with using regular php session management code.  The problem was in my
php.ini conf file.  I changed the line to this:
output_buffering = Off

and regular php session management started working.  the session ids
were the same when i went from page to page.

However with the cakephp simple auth tutorial my session ids still
change from page to page upon redirect.  i'm at a loss to figure it
out.  any ideas?


On Oct 28, 1:57 pm, "vince" <[EMAIL PROTECTED]> wrote:
> Ok so I hopped on the IRC and got some more information with
> pr(session_id());
>
> showed that i'm not getting the same session id accross requests.  It
> looks like it could have something to do with the way php is set up.  i
> was recommended to edit the enable-trans-id in my php.ini file.  I
> don't have that in my php.ini file.
>
> looks like it could be more of a setup problem.
>
> On Oct 28, 12:48 pm, "vince" <[EMAIL PROTECTED]> wrote:
>
> > I'm just triyng to get the basic auth working.  While in the login()
> > function I can read my session data fine be using
> > $this->Session->read('User').
>
> > However once I redirect to another function, index(), calling
> > $this->Session->read('User') nothing.  Similarly in my view:
> > index.ththml if I use $this->Controller->Session->read('User') I get
> > nothing.
>
> > Now, there is session data, which I can show by using
> > print_r($this->Session->read()) but nothing in there for User.  The
> > same goes if I use php's $_SESSION.
>
> > I'm actually new to php and cakePHP, so I might be missing something
> > simple.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to