|
Hi Experts,
I have created a login page in php called login.php, it accepts username, password and domain and then does some authentication. IF authentication succeeds it starts a php session and sets a session attribute. In my php application, i check this session attribute in all the pages to find out whether the user has logged in or not.
Now I have another application entirely written in html. Now I want to call this login.php page when a user tries to access any html page. Now the problem is ,I can call the login.php page using a simple javascript call but once the user enters the credentials and gets authenticated how will I pass the knowledge to the html page that the session variable is created, because if the html page does not recognize the creation of php session variable, it will again throw login.php page for users.
Please let me know how can I reuse my login.php page successfully from html pages. Please also let me know any implementation specific suggestions (like creation of a seperate login page for html application which will act like a middleware taking the session variable from php and converting it into html (session) variable or something like that, so that my html applications can use it.
Thanks.
|