I currently have a members only area on my website which uses php session to protect the pages from non members. The username and passwords are stored in text file (password md5 encoded) if the username and password are valid the following code is executed
I would like to display the number of members online in both the protected and unprotected areas. Does anyone no of a simple way of acheiving this?
Code:
//validation of member username & password
session_start();
$_SESSION['members'] = $_POST['uname'];
Header("location:../Members/welcome.php");
I would like to display the number of members online in both the protected and unprotected areas. Does anyone no of a simple way of acheiving this?