Force Logout for Specific Users Our Drupal 7.5 website is having an issue where users click logout but they are sent to the front page still logged in. I believe it's related to a bakery module, however, the question I am asking here is this: how do I force logout for specific users (not all users) via command line?

I tried:

drush uinf &lt;username&gt;


(To get user ID)

drush sql-query "DELETE FROM sessions WHERE uid = &lt;uid&gt;;"


The end result was a sql deadlock that crashed the site momentarily, and when it came back up, the user was still logged in. Should the sql command have worked? If so, then I may need to troubleshoot other issues.

Update: I disabled the bakery module and the problem went away, so the command was correct, but something about the module was wrong. I don't know why.
I disabled the Bakery module and am now able to clear the flood tables using the command without getting the deadlock.