Quote:
Originally Posted by Smilie Yes i know this, but what i'm going to place on the page aint downloads, its some information, that i only want licensed people to enter.. eg: support forum or so.. |
You better consult their API docs or developer docs for session/login sharing info..if thats allowed.
Otherwise...
1. create a login form and collect data and get it posted say authenticate.php
2. In authenticate.php filter posted values, then compare them with user database like :
PHP Code:
$user_result = mysql_query("SELECT * FROM `user_table` WHERE username='".mysql_real_escape_string($_POST['username'])."' AND password='".mysql_real_escape_string($_POST[password'])."' LIMIT 1");
if(mysql_num_rows($user_result) == 1){
...grant access
}
else{
...redirect to login form
}
But you need to know how they are storing password..is it md5 encrypted or sha1 or is it just plain password. Accordingly the above code will change to match the password.