// delete any expired sessions for the user
final Timestamp created = new Timestamp(System.currentTimeMillis());
DBConnection connection = db.getConnection();
try {
connection.update(AuthDB.DELETE_EXPIRED_SESSIONS, new DBUpdateHandler() {
public void prepare(PreparedStatement s)
throws SQLException
{
s.setInt(1,id);
s.setTimestamp(2,created);