Re: cakephp 2.0 auth session problem
I am also having an issue with sessions, and I'm very frequently being asked to log back in.
Configure::write('Session', array(
'defaults' => 'database',
'ini' => array(
'session.cookie_secure' => false
)
));
Configure::write('Security.level', 'medium');
I have a domain that servers both HTTP and HTTPS, so I turned off secure cookies.
I have Auth + ACL as well, and had no issue using CakePHP 1.3.x. I am using the database to store session information, and noticed that one user will generate many (10+) number of entries in the cake_sessions table. I'm still looking into AJAX requests being the cause, or I've seen a note about sessions being invalidated if a file (image, css, js, etc.) is not found. I'll be sure to post back if I find a solution, and I must, because this makes the site basically unusable.
As an aside, I'm also using the Facebook SDK, but have comment out it's request to start a PHP session so that CakePHP can start it's own. Not sure if anyone else is using the Facebook SDK, but thought I would through that out there.
--
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