I will have login.php which has a basic login form. When logging in, check the user, register that the user is authenticated, and then redirect him to index.php, which will load your ExtJs web application. In the index.php file, download the ExtJs application only if you can authenticate the user.
I found this: http://phpeasystep.com/phptu/6.html
In the tutorial, they are redirected to login_success.php, this will be your index.php. You can see that it checks if the user is logged in.
// Check if session is not registered , redirect back to login page. // Put this code in first line of your index.php <? session_start(); if(!session_is_registered(myusername)){ header("location:main_login.php"); } ?>
source share