I want to be able to log users out of a system by deleting their row from a database using CDbHttpSession. I assumed that all I need to do is delete the row with the corresponding ID in an action of a controller. However, this does not work and the session data is reinserted after I’ve called delete on the row. I’ve also tried setting expire to zero but this doesn’t work either.
No, I’m not referring to logging out the current web user. I am using CDbHttpSession to manage session data and want to log out users by deleting their row in the db table. I have customised the schema to hold user id amongst other things that are populated on CWebUser::afterLogin(), this is so that I can identify each user in the table.