Configuring a session