How to check site access in shell script

Hello every one,

I have a little issue that has been killing me now for the past couple of days, I have tried to find solutions online, but its been hard to, ok here it goes...

I have created a site that is based on amount of user that have access at a time, based on cookie. So if the browser is closed, I am able to remove user from my database, however, when the pc freezes or pc just shuts down, I can't tell the database that user has been removed.

I am looking for a solution via shell if possible, maybe based on the user ip, shell checks database and checks if this ip is active, and if not the user is removed from database, then I can add to cron job.

Any help, I would be gratefull thank you

Double and Crossposting is not allowed, thread closed.

Read the forum rules:
The UNIX and Linux Forums - Forum Rules

Continue here:
http://www.unix.com/unix-advanced-expert-users/96700-how-check-site-access-shell-script.html\#post302276149