I am currently developing a mysql database and using php to connect to the database.
Now, I have a login page, where users log in using their usernames and passwords. Now, I want only the logged in users to access the database.
Consider this , the log-in page is called login.php.
Now I want that when a user logs in successfully some kind of global variable is set for the user using which I can test whether the user has logged in or not ?
Please help me out...
Now, I have a login page, where users log in using their usernames and passwords. Now, I want only the logged in users to access the database.
Consider this , the log-in page is called login.php.
Now I want that when a user logs in successfully some kind of global variable is set for the user using which I can test whether the user has logged in or not ?
Please help me out...
