Hello,

I am new to PHP and programming in general and I am looking for some
suggestions on how to implement some functionality I need for a
website I am building.

I want to limit the amount of time a user is able to use a website
based on information in a database.  The website is a robotic
observatory control website.  

Users buy time and are scheduled to use the observatory during certain
times.  I have built a MySQL database that contains schedule,
privilege and user logon information.  I have a front end PHP web page
that uses this information to authenticate a user and then forward
them to the observatory control page.  Once they are at that page, I
need to be able to limit the time they have access to the observatory
control page.

I am not sure how to implement a process that wraps around the
observatory control page and will boot a user once their time expires
or they log off or they reach the end of their scheduled time.

I know this is a bit vague but I'm not sure where to begin.

How would one allow a user the full functions of a given web page and
then boot them from that page once some criteria are met?  A PHP "do
while" loop?  A completely separate background application that
monitors the exit criteria and then disconnects the user from the webpage?

Thanks,

Dave


Reply via email to