I need to be able to login/logout users to my site (thinking of using PHP session managment or CGI script), but they can only log in or out at specific times like:
Allow users to login/logout only between 8-5PM
How would I go about having that restriction?
Checking the server time at the point of login is simple, but I have only one page of content I need to protect and I need to be able to tell the user:
"Our service shuts down at 5pm, you have 5 more minutes to log off"
If they don't log off they will be forced off.
So I need to be able to check the time in regular intervals during the session. I don't know how to go about doing that.
I am on a UNIX server with MySQL, PHP4, PERL, JavaScript and Java. I cannot switch to a windows server
Thanks so much for you expert input.
-Byron Scott
byronscot@nyc.rr.com