Wednesday, June 23, 2010

Session and/or Cookie Problems

I upgraded my project to run on 1.3 and I seemed to have everything
working. I recently added a new controller and model. For some reason
though, I cannot access cookie or session stuff in that controller. I
am defining all components globally in my app_controller and it looks
like this:

App::import('Core', 'l10n', 'Sanitize', 'CakeSession');

class AppController extends Controller {
var $helpers = array("Html","Htmla", "Form", "Javascript",
"Navigation", "Sidebar", "Tinymce", "Ajax", "Session");
var $lan_suffix;
var $components = array('Acl','Auth','Session','Cookie','Email');

but any checks to read session vaariables in this single controller
only returns

[Config] => Array
(
[userAgent] => 61e90e68aec2746555251e02f88c20c2
[time] => 1277320982
[timeout] => 10
)

and none of the Auth or custom session information I have set.

I could understand if none of the session information was working, but
am at a loss where to look or how to solve the problem.

Can anyone give me a pointer?

Thanks,
Taff

PS I have followed the migration from 1.2 thread in the book.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: