PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
seek in table frequantly to find user session that has more than x minutes of lifetime to log out them. I want set a certian time to user session and when it expird, automatically log out her/him.but if i do this iteration in table,then there is no time to do other work
Thanks to all
i suggest this way.Do you think it is correct??? and enough useful ?
1)save user entrance time to db
2)on every request from him/her update last activity for that user
3)on every new user login or old user logout check db for find users with no activities and logout them