hisham
IS-IT--Management
- Nov 6, 2000
- 194
I use session to verify if the user of the page is logging in as:
session_start();
if (!session_is_registered('login')) {
header("Location:index.html"
;
}
Then if the user request any php page with the above code, this will redirect him to index.html, my question is: how to do it if the user request other files i.e ?
Thanks in advance.
session_start();
if (!session_is_registered('login')) {
header("Location:index.html"
}
Then if the user request any php page with the above code, this will redirect him to index.html, my question is: how to do it if the user request other files i.e ?
Thanks in advance.