Difference between #3 and #4 of
Check online users / set specific user offline

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;
[...]
1 0
4 followers
Viewed: 19 519 times
Version: 1.1
Category: How-tos
Last updated by: Kostas Apazidis (KonApaz)
Created on: May 19, 2014
Last updated: 10 years ago
Update Article

Revisions

View all history