I had a similar sounding problem - mine turned out to be that that I
was redirecting to a slightly different domain name - in my case I was
loosing session data when I redirected from http://www.domainname.com
to say https://domainname.com (no www in domain name). Bottomline is
make sure your domain is identical betwen requests or you get a
different session.


On May 26, 9:12 am, tyhilltx <[EMAIL PROTECTED]> wrote:
> I've been pouring over all the posts I can find about session data
> being lost between requests and trying many things to no avail.  I
> know my sessions are working having tried small scripts posted here as
> well as my own.
>
> The session data is being set before the redirect but not there
> afterwards (redirects are within the same controller).  The only
> additional information I can offer is that I have printed out the
> session var before and after the redirect:
>
> before:  array(2) { ["Config"]=>  array(3) { ["userAgent"]=>
> string(32) "64892a716147xxxxxx52f1cb727cca" ["time"]=>
> int(1180135426) ["rand"]=>  int(1103872500) } ["User"]=>  array(7)
> { ["id"]=>  string(1) "1" ["username"]=>  string(7)
> "ty_hill" ["password"]=>  string(32)
> "7b020axxxxxxx4e0bb4f12" ["email"]=>  string(28)
> "[EMAIL PROTECTED]" ["first_name"]=>  string(2) "Ty" ["last_name"]=>
> string(4) "Hill" ["last_login"]=>  string(10) "2007-05-25" } }
>
> after:  array(2) { ["Config"]=>  array(3) { ["userAgent"]=>
> string(32) "64892a716147xxxxxx52f1cb727cca" ["time"]=>
> int(1180135426) ["rand"]=>  int(1103872500) } ["User"]=>  array(7)
> { ["id"]=>  string(1) "1" ["username"]=>  string(7)
> "ty_hill" ["password"]=>  string(32)
> "7b020axxxxxxx43c34854e0bb4f12" ["email"]=>  string(28)
> "[EMAIL PROTECTED]" ["first_name"]=>  string(2) "Ty" ["last_name"]=>
> string(4) "Hill" ["last_login"]=>  string(10) "2007-05-25" } }
>
> (forgive the few well placed x's)
>
> At this point I'm not really even sure what to ask but will be happy
> to post additions info or answers if needed.  I'm using PHP5, Apache2
> and Mysql5.  Using version 1.1.14.4797.  I just started working with
> Cake and am trying to get through some tutorials when I hit this
> problem.  Any help would be greatly appreciated.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to