[eluser]tomdelonge[/eluser]
I keep trying, but weird things happen.
Once it is supposed to redirect, it takes forever, and then the browser says:
The connection has timed out
The server at localhost.com is taking too long to respond.
But the weird thing is then the url in the address bar is the one I was trying to redirect to...
Is this not how to do it?: (I have the url helper loaded)
Code:
function testing()
{
if ( ! $this->session->userdata('logged_in'))
{
redirect('/admin/');
}
}