Re: 403 error

2014-07-31 Thread Jeremy Burns : Class Outfit
Thanks Andy. Turns out it was something much simpler. I use MAMP Pro and had the cache module set to APC. As soon as I turned that off the issue went away. On 31 Jul 2014, at 06:52, AD7six andydawso...@gmail.com wrote: That sounds like a consequence of web requests and CLI requests sharing the

Re: 403 error

2014-07-30 Thread AD7six
That sounds like a consequence of web requests and CLI requests sharing the same tmp folder. E.g. executing Console/cake as root will create cache and log files which the web user can't edit. If that's the problem the simplest solution is to use different tmp folder locations for web and CLI

Re: 403 error

2014-07-24 Thread Jeremy Burns
It seems as if the cache files are being written as read only. Anyone got any suggestions please? On Tuesday, 15 July 2014 16:35:48 UTC+1, Jeremy Burns wrote: I have a site that works fine most of the time, but on occasion I'll get 403 errors for a page even if I have previously viewed it

403 error

2014-07-15 Thread Jeremy Burns
I have a site that works fine most of the time, but on occasion I'll get 403 errors for a page even if I have previously viewed it successfully, sometimes when I refresh a page. Sometimes clearing the cache resolves the issue but on others I need to restart the browser. Any clues what's

Re: Making multiple ajax requests at once give 403 error...

2009-05-24 Thread nurvzy
Glad you got it all figured out. =) On May 23, 5:55 pm, Andrew Koebbe andrew.koe...@gmail.com wrote: Ah ha! It was the Security.level = high in the core settings. As the comments say... CakePHP session IDs are also regenerated between requests if 'Security.level' is set to 'high'. I set

Making multiple ajax requests at once give 403 error...

2009-05-23 Thread Andrew Koebbe
So I'm working with ExtJS and have a few grid that I'm populating with json data from Cake. The requests go out at the same time when the page loads, but only one of the requests succeed. Sometimes is one request and sometimes it's another. The failing requests get a 403. If i go to the url of

Re: Making multiple ajax requests at once give 403 error...

2009-05-23 Thread Andrew Koebbe
Ok. Oddly enough, when I disable firebug, all of the requests come back just fine. I'd still like it to work with firebug so that I can use it to debug everything. Anyone else had that problem? --Andrew On May 23, 3:35 pm, Andrew Koebbe andrew.koe...@gmail.com wrote: So I'm working with ExtJS

Re: Making multiple ajax requests at once give 403 error...

2009-05-23 Thread Andrew Koebbe
Nevermind. I've totally uninstalled firebug and I still get sporadic 403s on ajax requests. Sometimes everything will load, and sometimes only one request will work. I can't seem to find any rhyme or reason. Any help would be appreciated. --Andrew On May 23, 3:43 pm, Andrew Koebbe

Re: Making multiple ajax requests at once give 403 error...

2009-05-23 Thread Andrew Koebbe
Ok. So I found the culprit, but I'm not sure how to fix it. The problem is the ACL. It seems like one of the ajax requests has the credentials, but the other requests do not, so they are getting sent to a login prompt. If allow access to the ajax controllers to everyone then they work every time

Re: Making multiple ajax requests at once give 403 error...

2009-05-23 Thread Andrew Koebbe
Sorry for all of these messages. I'm continuing to see more and more pieces of the puzzle After looking at the response header of the first successful response, there is a set-cookie header: Set-Cookie CAKEPHP=deleted; expires=Fri, 23-May-2008 23:04:12 GMT; path=/

Re: Making multiple ajax requests at once give 403 error...

2009-05-23 Thread Andrew Koebbe
Ah ha! It was the Security.level = high in the core settings. As the comments say... CakePHP session IDs are also regenerated between requests if 'Security.level' is set to 'high'. I set it to medium and the session IDs stay and the ajax requests all work every time now. I wonder if it would be