JUser replaced with User. Login and logout functions works now. !Important: use mysqli instead of mysql. Mysql handler's function updateObject() triggers infinite loop.