modify session control