-
Puzzler...
Hi
I have made a few scripts for a program I am making - one problem, if the user doesn't log out, but rather disconnects without logging off, how can I make the scripts recognize that and set the user as offline???
Any help is appreciated,
SuperBatman :)
Thanks~
-
using what language? :confused:
-
Noooo!!
lol - now i gotta wait another 24 hrs for a reply O.o :D
I'm using Perl\CGI
-
can you can check for a cookie?
-
Yes, I suppose I could, but - I what if the user clears the Temp Internet Files folder?? Then won't the cookie be gone??
...Then they would just log-in again... hmm...
But the thing is, my CGI-Script "ListOnline.cgi" takes a text file and reads who is online from it - that's why I need to log them out if they disconnect...
Anyway, thanks if anyone can help
-
well if you check from a text file then have your script check to see if they are online then if not just delete there name. or you can just delete there name after a certain amount of time out of the text file.
like this site. I never log out but the site shows that I am not here as I ain't, but when I am here it doesn't require me to log in again. that is because it goes off my cookie.
so if a certain amount of time have the scripts check the cookies to see who is here or not then if not then delete their name off the list.