param replacement session handling