Added getConnection method to session handlers