You can also use $this->redirect($this->referrer()):
http://api.cakephp.org/class_controller.html#e87c8e6edf53aadc511e3d050d71a494
On Jun 19, 2:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I got it sorted!! I overlooked the fact that I only need to know the
> previous URL in my login
I got it sorted!! I overlooked the fact that I only need to know the
previous URL in my login and logout actions. So I don't need to set
the URL for each controller action, I just use $this-
>redirect($_SERVER['HTTP_REFERER']) instead. Much easier!
Thanks for the replies!
On Jun 19, 1:39 pm, "dr
I think you will need to create your own handler for that.
For example, you might do something like "document.location.href =
document.location.href;" to refresh the page after you receive
response from your AJAX login.
On Jun 19, 2:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi Mart
Hi Martin,
Thanks for the reply. I am using the Auth component, but the problem
is that my login action is in an Ajax updated lightbox. When the login
tries to redirect from that lightbox, it only redirects within the
lightbox, not the whole page. Do you know if this is possible?
Thanks!
On Jun
Hi,
Just to make sure: You have tried the AuthComponent in CakePHP? It
redirects you back to the last page visited automatically. It uses the
"referer" value and should not direct you back to an ajax-snippet but
to the last "proper" url (as seen in the browsers address bar).
If it does not do wha
Hi all,
When my users login, I want to redirect them to the page they were on
before they chose Login. This I was doing in beforeFilter() of
app_controller.php, by storing the current URL in the session.
However, some of my pages have multiple actions on them, which messes
this code up. For instan