You can redirect after your login process using header("location:../index.php");
remember that you have to use the correct path, in this example I assumed that you have a folder which you have this login process and your index is at another sub folder, if your file are in the same directory/folder you dont need ../ just put index.php after location: