Hey Guys I am a newbie to PHP and MYSQL and I am trying to build a application. The first page I developed is the Login form where the user types in the user name and password and the database name and clicks on submit
The way I have the current design is when the user inputs the values in the above login form, I wrote code n PHP for it to check the values in a generic database to see if the user is valid or not.
If the user is valid then I have a common user name for the database the user will use behind the scene to actualy log in to the datbase of his choice.
This is what I have
Form 1. User enters the values
user name =test
password= test_password
database=test_db
when the user clicks on Submit this info...
The code actually logn into the database as
username= database1
username= database1_password
database =database1.
In this database there is a table called user that has the values for user name
and user password. It checks to see if it is valid and a row will be returned.
If the results are valid then the code will connect to the database as
username=database2
userpassword=database2_password
database=test_db (this is the initial database the user wanted to go to)
NOW I AM STUCK. I want to know how I can keep this connection troughout till the user is logged in and jump from one page to the other using MYSQL database connection and queriess. Also how to kick the user out after 30 minutes of no activity.
Please help and Thankyou to all in advance.