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 it to medium and the session IDs stay and the ajax requests all
> work every time now. I wonder if it would be good for cake to not
> change the sessionID when the user agent is     XMLHttpRequest.
>
> --Andrew
>
> On May 23, 6:10 pm, Andrew Koebbe <andrew.koe...@gmail.com> wrote:
>
> > 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=/
> > CAKEPHP=ddfc467602564dd86ac7b7eb98e04020; path=/
>
> > So the first successful response from cake resets the cookie, but the
> > other requests are still going with the old cookie. So what I need is
> > for cake not to reset the cookie. How do I do that?
>
> > --Andrew
>
> > On May 23, 5:59 pm, Andrew Koebbe <andrew.koe...@gmail.com> wrote:
>
> > > 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 with the ajax request. Obviously allowing
> > > access to the controllers to everyone is not desirable. So is there
> > > something I need to change so that the credentials are being passed to
> > > the controller?
>
> > > --Andrew
>
> > > On May 23, 5:45 pm, Andrew Koebbe <andrew.koe...@gmail.com> wrote:
>
> > > > 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 <andrew.koe...@gmail.com> wrote:
>
> > > > > 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 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 one of the failing requests if works just fine.
>
> > > > > > Looking at firebug shows that there is a response from Cake. There 
> > > > > > are
> > > > > > no error messages, just the sql debug table. There are no error
> > > > > > messages in the cake error log.
>
> > > > > > Anyone got any ideas?
>
> > > > > > --Andrew
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to