Manage user sessions stored in a MySQL table