When will the session end in a copilot studio? It is not ending after end of the conversation topic
I think you are mixing different concepts. The default behavior of copilot studio chat control is to keep the user session alive unless the user close / opens a new tab / browser window. It has no control / idea of the custom authentication mechanism of the website it is deployed on. So, if you log out of the website but keep the tab open your copilot session is still active regarding your authentication status on your website.
You described a scenario where users are on a single tab and login / logout of a website with the same computer - is this the real use case? Are multiple users going to be sharing the same computer without closing the browser? If so you would need to build a custom integration of Copilot that will request a new token when users are login/logout of your website.
But usually in real life users will all be connecting to your copilot from different computers / browser / etc. And their sessions will not be shared. Try to open 2 tabs on your website and it will create 2 different copilot sessions that will not share history.
@remidyon We have not yet used custom implementation for integration with website. We have used iframe embedded code provided from copilot studio, in that case no way to control session?
You must have missed a step in the custom implementation of your copilot. You need to request a new conversation token when you login with a user. Please take a look at this documentation: Add a copilot to mobile and web apps - Microsoft Copilot Studio | Microsoft Learn
The Copilot we have developed is embedded to a custom website where one website user session is logged out and on the same tab when we login with another website user I am getting the old user chatbot messages which is wrong. Please help on providing solution to end the chatbot session manually with default canvas.
You cannot change the session parameters - that would not be very interesting for you: your users would consume more sessions.
What are you trying to accomplish? Why do you need to end the session?
@remidyon Is there a way to customize the timing for session refresh in this scenario?