Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-30 Thread quincy
I installed the live HTTP Headers extension, and when i hit submit on my form, it appears to go nowhere but the headers (as far as i can tell) appear to indicate that its trying to redirect and request the right page. I get: - POST /cms/cms/user/processlogin/ HTTP/1.1 .. HTTP/1.x 302

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-30 Thread AD7six
Hi Quincy, On Jan 30, 11:08 am, quincy [EMAIL PROTECTED] wrote: I might point out (don't think i did initially) that i'm using Ajax. Maybe that has something to do with it. If you use Firefox and firebug, it will tell you 1) if you have a js error 2) if there was an ajax request 3) what the

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-30 Thread quincy
Hey, Thanks for the pointers. After some confusion and searching here i have overwritten the redirect() function in AppController like so: - class AppController extends Controller { var $components = array(RequestHandler); function redirect($url) {

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-30 Thread AD7six
On Jan 30, 1:03 pm, quincy [EMAIL PROTECTED] wrote: Hey, Thanks for the pointers. After some confusion and searching here i have overwritten the redirect() function in AppController like so: - class AppController extends Controller { var $components = array(RequestHandler);

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-30 Thread quincy
I don't understand what you mean about options['update'], this is something i would set in an Ajax link but i have no idea how it relates to redirecting!! I was under the impression that options['update'] is only relevant ajax helper functions and i'm not using any. I just tried doing this:

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-30 Thread AD7six
Hi quincy, Please clarify this contradition: I might point out (don't think i did initially) that i'm using Ajax. ... is only relevant ajax helper functions and i'm not using any. If you are using ajax ***at all***, as I said before, Look for $options['update'] on

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-30 Thread quincy
You're absolutely right, sorry for the confusion. I did, in fact, already have the update parameter set, but i'd made a fatal error elsewhere. This is one of those super annoying mistakes that all coders STILL make even when they're experienced, can't see the woods for the trees sort of

Redirection problem - sometimes works, sometimes doesn't!!

2007-01-29 Thread quincy
I have a very simple login authentication system, and depending on the outcome I either redirect to an action in a different controller or post an error message in the session and redirect back to the login page: - $username = $this-data['User']['username']; $password =

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-29 Thread Grant Cox
What happens when it doesn't work ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-29 Thread quincy
Hi Grant, Basically, the do you want to save this password... browser dialog pops up, i hit no and the dialog dissapears, then the page just sits there. it doesn't redirect, or clear the form input fields, or anything. Just sits there!! Very frustrating!! On Jan 29, 11:43 am, Grant Cox

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-29 Thread Grant Cox
1. What browser are you using. 2. Have you tried other browsers? 3. Are you sure that it is actually submitting your page request? 4. Is your PHP setup to display or log errors - have you checked the log. I would suggest you try it with Firefox, and have Firebug or Live HTTP Headers extensions