Session setup/teardown working