I add to table sfGuardUser new fields – is_online. If user login on my site then i set this field on TRUE. if he logout then i set FALSE, but how to set FALSE if lifetime session for these user expired?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
i think is better to create a field on the sf_guard_user table where you set the last activity date.
everytime the user reload the page, you have to set this date with the current_timestamp.
now you can check with a date_diff the users login state!