thanks, i got the script to log NOW(), PHP_SESSID, IP and USERNAME.
I now need to write a script to go on each page that will check the PHPSESSID, username, IP Addreass and NOW() with the ones on the database.
The script is only valid for +7200 seconds after it is logged in the database. If the details are incorrect, the page ../denied.php needs to be displayed. I have written the connect script that is all...
can sum 1 help me with my script below:
<?
$conn = @mysql_connect("host", "username", "password")
or die("could not connect");
$rs = @mysql_select_db("database", $conn)
or die("could not select database");
$sql="select * from table_name";
$rs=mysql_query($sql,$conn)
or die("could not execute query");;
If $PHPSESSID == ......
//I have noooooooo idea how to do this
as you can see i dont know what im doing. It is complicated, but im trying!
Thanks for your help
Matt