Re: Auth Unexpected Behavior

2009-04-24 Thread AgBorkowski
i have the same problem most of them in many ajax (suggest) request, strategy is simple my script after 4th+n request return sql debug after that every action were logged out at past i create fit request controler for eg. xhr_controller > controller, so my fit controler loks like XhrController

Re: Auth Unexpected Behavior

2009-03-28 Thread rartavia
logout: thanks for your answer, i'm using mayorly (hah nice word) ajax calls for my app but there are some not ajax ones and i'm using requestAction at least one time witch is suggested using it with cache. I'll try $this->disableCache(); under requestHandler->isAjax maybe, i'll look how that work

Re: Auth Unexpected Behavior

2009-03-28 Thread rartavia
logout: thanks for your answer, i'm using mayorly (hah nice word) ajax calls for my app but there are some not ajax ones and i'm using requestAction at least one time witch is suggested using it with cache. I'll try $this->disableCache(); under Auth->isAjax maybe, i'll look how that works. But I t

Re: Auth Unexpected Behavior

2009-03-28 Thread rartavia
Hi JamesF, thanks a lot for your answer. I'm kind of new to this hole framework but at least the mayor part, if not all, of the Auth and Acl setup got it from book.cakephp.org from reading "Simple Acl controlled Application" (example applications) and the Auth and Acl components docs, including th

Re: Auth Unexpected Behavior

2009-03-28 Thread logout
I've noticed that the Auth component works very strange when it comes to ajax calls. I think the session is involved here plus the fact that if you use IE for a browser, it is caching something wrong. So in my case I put this line: $this->disableCache(); in the beforeFilter() function in the App

Re: Auth Unexpected Behavior

2009-03-28 Thread JamesF
not sure if all of your actions are in app_controller but i noticed something function beforeFilter() { //Configure AuthComponent $this->Auth->allowedActions = array('display', 'index', 'view'); $this->Auth->authorize = 'actions'; $this->Auth->loginAction = arra

Auth Unexpected Behavior

2009-03-27 Thread rartavia
Hello there, I'm having kind of a hard time setting up Auth Component, i'm getting really weird behavior. After configuring my Auth & Acl.. I know its a large post, but PLEASE HELP!! I'm initializing with this code: function initDB() { $aro = new Aro(); $

Auth Unexpected Behavior

2009-03-27 Thread rartavia
Hello there, I'm having kind of a hard time setting up Auth Component, i'm getting really weird behavior. After configuring my Auth & Acl.. I know its a large post, but PLEASE HELP!! I'm initializing with this code: function initDB() { $aro = new Aro(); $