Hey danfreak,
I absolutely love your Auth system! I have been wanting to implement a redirect and flash message for users (whom are already logged in) that attempt to re-visit the Login page.
I used your other flash messages as examples to construct mine, but it just doesn’t seem to work. I was hoping a fresh pair of the designer’s eyes would direct me towards getting it to work.
(All other flash messages work, for example the ones in the Admin panel, displaying login success and no access permissions…).
What it does, exactly, is perform a isValidUser() and if the viewing user is logged in (not guest) is set the flash message and redirect to the home page (where the
$this->db_session->flashdata(‘flashMessage’) displays the set flash based on its key, which I made sure was ‘flashMessage’) ELSE it displays the normal login form to the ‘guest’ user.
Here is the code I altered to try and implement this functionality… This is excerpted from auth.php beginning on line: 65.
/**
* Displays the login form.
*/
function index()
{
if($this->freakauth_light->isValidUser())
{
// Display user name and an 'already logged in' flash message...
$msg = $this->db_session->userdata('username').', you have already logged in!';
$this->db_session->set_flashdata('flashMessage', $msg, 1);
redirect ('login', 'location');
}
else
{
$this->login();
}
}
I know, in essence - it doesn’t really matter if the user keeps re-logging themselves in, and I have no idea if there could be any exploits with it, but for the ‘slick-ness’ factor I have been wanting it 
Regards,
Iksander