[eluser]selman555[/eluser]
Hello everyone!
Question: I've been looking for a simple way to redirect users back to the homepage when they have successfully logged in.
I know about this:
Code:
$this->output->set_header('refresh:5; url='.base_url());
This should delay my request for five seconds, but it doesn't
I would also like to output the remaining seconds like this:
You will be redirected in $timeRemaining seconds.
How can I accomplish this? If someone knows a way without codeigniter, that would be fine too.