To clear down sesions in owncloud

You can connect to the database, find and delete the login_token that corresponds to your username in the table oc_preferences. After that, you must clear the php session files (in my case, Ubuntu 14.04 located at /var/lib/php5)