Revision #4 has been created by Kostas Apazidis (KonApaz) on May 19, 2014, 9:49:48 AM with the memo:
-
« previous (#3)
Changes
Title
unchanged
Check online users / set specific user offline
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
Control, Check, online, users, specific, user, offline
Content
changed
[...]
//force user to logout
public function logOutSession() {
$table = Yii::app()->session->sessionTableName;
$db = Yii::app()->session->getDbConnection();
$row = $db->createCommand()->delete($table, 'id_akm_user=:id', array(':id' => $this->id));
if ($row)
return true;
return false;[...]