The title explains it all.
When the user does not post or update his browser after (x) amount of minutes, the user will be automatically logged out of the chat room, and will have to login again. If anyone can help me with this, it'd be greatly appreciated.
Inactive user, auto logout
Started by derek.sullivan, Jan 26 2009 06:15 PM
4 replies to this topic
#1
Posted 26 January 2009 - 06:15 PM
#2
Posted 26 January 2009 - 07:02 PM
a. Use a cron job to check the last_post times of all logged-in users.
b. When a user tries to post, check his last_post time.
In each case logout/display login prompt as necessary.
Also, just wanted to remind you of this discussion: http://www.pixel2life.com/forums/index.php...2&hl=logout (though i do see the differences between the questions).
b. When a user tries to post, check his last_post time.
In each case logout/display login prompt as necessary.
Also, just wanted to remind you of this discussion: http://www.pixel2life.com/forums/index.php...2&hl=logout (though i do see the differences between the questions).
Edited by rc69, 26 January 2009 - 07:03 PM.
#3
Posted 26 January 2009 - 08:50 PM
You're going to think I'm silly, but I've never done a cron job nor do I really know what one is. Any examples??? This is going to be a downloadable/installing script for people to use.. so if i can avoid major frusterations, that would be benefical to myself, and my clients.
#4
Posted 28 January 2009 - 08:18 PM
Since cron jobs aren't supported on all servers (namely select shared servers), you would probably be better off sticking to option b.
In reference to "cron jobs" though:
In reference to "cron jobs" though:
#5
Posted 30 January 2009 - 11:27 AM
Well, again I don't want too use cron jobs, nor do I know how, and nor do I want to learn at this point in time.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
