I've been using CakePHP 1.3 with YUI uploader 2 and it was working
until a couple days ago. The uploader sends the session ID with the
post and I catch it in the beforeFilter to set the session id. This
has stopped working for some reason with no configuration changes. I
know the code is being called because inserting a log entry at that
point works. There are no errors, nothing unusual in the logs, but the
upload fails and my session gets borked, requiring me to re-
authenticate.
I have Session.checkAgent set to false and Security.level set to low.
I've tried Session.save as both "php" and "cake". Neither work. Here
is my beforeFilter:
function beforeFilter(){
// handle session id passed by uploader
if(array_key_exists(Configure::read('Session.cookie'), $_POST) &&
array_key_exists('admin', $this->params) && $this->params['admin'] ==
1) {
$this->Session->id($_POST[Configure::read('Session.cookie')]);
}
parent::beforeFilter();
$this->Auth->allow('index', 'view', 'thumb', 'slides');
}
Has anyone had to do anything extra to make this work? I added some
new models/controllers to the app, but nothing that affects the
uploader. This was all working until just a couple days ago.
Thanks in advance for your help :)
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 [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