I have certain pages that require to a user to be logged in Joomla. When they click on the links to those pages a login box appears in an iframe overlay. Once they login, I
I used $this->setRedirect($link, $msg);
$this->setRedirect($link, $msg);
For more information on this function refer here http://docs.joomla.org/API15:JController/setRedirect