Welcome Guest, Not a member yet? Register   Sign In
Intermediary confirmation page
#1

[eluser]neen[/eluser]
I want to create a page after a user has logged in saying "You have been logged in, you will be forwarded in 5 seconds"

Is there any function built in to CI to facilitate a timed redirect (as opposed to an instant one using redirect())?
#2

[eluser]Randy Casburn[/eluser]
Nope. Have to build your own.

Use:

Code:
header("Refresh: content:5;url=THEURL");

Randy
#3

[eluser]neen[/eluser]
Not a big deal really...
Thanks
#4

[eluser]Randy Casburn[/eluser]
For the record, you can send redirect a second argument "refresh". But the refresh timeout is 0, so doesn't really meet your needs.

$this->url->redirect('THEURL','refresh');

is the same as

header("Refresh: content:0;url=THEURL");

Randy
#5

[eluser]neen[/eluser]
Yeah, I need a timed redirect here to let the user know they have been logged in/out...




Theme © iAndrew 2016 - Forum software by © MyBB