How to logout a specific user programatically? I need to logout a specific user programmatically whose uid is known to me.

I think I need to destroy the session. Is there any table in drupal store that value?
Use drupal_session_destroy_uid function.


  Ends a specific user's session(s).


Example:

drupal_session_destroy_uid($uid_to_logout);