Wednesday, May 16, 2012

Re: CakePHP Session lost / Facebook SDK / Cookies

Yes, the Facebook SDK starts a PHP session before CakePHP gets a chance to.  In the Facebook SDK there is a file called "Facebook.php", and in the __construct function you'll "session_start();".  If you comment out that line, CakePHP will be able to start it's own session just fine.  Facebook should also be unaffected by this change ... I've been using this "fix" for some time without any Facebook issues.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate