Notifications
Announcements
When will the session end in a copilot studio? It is not ending after end of the conversation topic
Hi @Karishma2805998
Session ends after 1h or 100 turns of conversation, whatever comes first.
@remidyon Is there a way to customize the timing for session refresh in this scenario?
Hi @umamaheswari1
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
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 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
@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?
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.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 261 Super User 2025 Season 2
Romain The Low-Code... 198 Super User 2025 Season 2
S-Venkadesh 93 Moderator