web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Is there a way to forc...
Copilot Studio
Unanswered

Is there a way to force a session to end?

(0) ShareShare
ReportReport
Posted on by 2
Hello,
 
I need to find a way to finish the session instead of just the conversation.
 
The client interacts with the bot using an iFrame which sendsa parameter that filters the knowledge base the bot accesses to. Sometimes, the users might need to ask questions about multiple topics in quick succession, before the 30 minute mark passes and the session gets reset.
 
The problem lies in the fact that, even if we use an 'End conversation' topic and refresh the iFrame, it doesn't seem like the session ends, and for that reason we can't receive new parameters through the iFrame, and the previous conversation history doesn't get deleted.
 
Is there a way for us to properly force a session to end, so when the iFrame calls the bot again it doesn't have any previous history?
 
Thank you.
 
I have the same question (0)
  • Suggested answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
    Use a Session Timeout Trigger
     
    Add a Custom Parameter for New Sessions

    Force a New Session with a Page Refresh: Upon triggering the end conversation, programmatically reload the iFrame with an additional query parameter or timestamp. This can simulate a fresh session by resetting both the iFrame and bot session state.

     

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 261 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 230 Super User 2025 Season 2

#3
Sam_Fawzi Profile Picture

Sam_Fawzi 84 Super User 2025 Season 2

Last 30 days Overall leaderboard