So, I have a VDS and I was wondering how I could make a program or script that runs constantly in the backgroud. Something that can check sessions/cookies to make sure that htey are still good/valid. RUn queries through databases to make sure that people havent been idle too long, and if they have been then log them out. Stuff to that effect. Any ideas?
Share
If you want to do this while a visitor is there, you could just have a while loop that checks every 10 seconds with the server to see whether things are still valid
Client side, use JS
Server side, use any language you want