How to logout all active users?
As far as I know you can empty the sessions table and all users will be logged out. There may be an issue though, depending on the modules that you have installed. For example, modules that implement hook_user_logout() will never get their actions fired, which could be an issue. Check to make sure none of your installed modules is implementing this hook.