Welcome Guest, Not a member yet? Register   Sign In
redirecting - ajax request
#1

[eluser]saidai jagan[/eluser]
I just want to redirect any thing if the request is came by ajax.
so i used this

if($CI->input->server('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest')
{
header("Login-Status: relogin");
exit;
}
But it is not working.
any suggestions pls.
Thanks.
#2

[eluser]jcavard[/eluser]
"Login-Status: relogin" means nothing to the browser...

this is more like it
Code:
header('Location: http://www.example.com/login/');
or using CI function
Code:
redirect('http://www.example.com/login/', '');
hth
#3

[eluser]saidai jagan[/eluser]
Hi, Thanx for u r reply.
It is not redirecting Sad.
Is to configure any server set up ?




Theme © iAndrew 2016 - Forum software by © MyBB