Need to delete session for specific user (when he was banned). I know that session_id regenerates every 5 minutes. We are not storing sessions in database, probably just session_id for each user. Should I update db every time session_id changes or there is better solution?
EDIT: I think, the soulution might be to store sessions in database and add my_session_id to each session. Then I could find needed session by this variable. Comment this solution please and maybe is there some without storing sessions in database?