티스토리 뷰

Xpressengine

XE 중복로그인 방지

Raichu 2014.09.26 21:20


$oMemberModel = &getModel('member');
$member_info=$oMemberModel->getMemberInfoByUserID($user_id);
$arg='';
$oSessionModel = &getModel('session');
$output = $oSessionModel->getLoggedMembers($arg);
foreach($output->data as $key=>$val) {
    if($val->member_srl==$member_info->member_srl) return new Object(-1, 'already_logged');
}

member.controller.php의 procMemberLogin 함수에 추가


http://www.xpressengine.com/qna/22674946

댓글
댓글쓰기 폼