Hello Derrick,
I may not have the best solution, but it helped me.
When the owner logs in with authentication, write a small text file on the server itself in a know directory/path, with text such as owner_login_status=1;
In your board/showboard.php, just read this file before showing the message board, and check for this value to be 1. If the owner logs off, simply destroy(unlink) the file or make the owner_login_status=0
Bhush
ps: i hope this helps 🙁
Derrick wrote:
When the owner of a site that I'm working on logs in, he does so through a password protected directory and accesses an private/index.php file.
I want for visitors that are reading his message board via the file "board/showboard.php" to know when he is on-line, i.e. when there is a hit to the file "private/index.php" within 10 minutes of his logging on.
Would I use $http_referer to do this?
What is the simplest/best approach here?