-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Session Handling #125
Comments
I'm not entirely sure what you are trying to accomplish by using sessions, but I came up with a solution using User State in the BotFramework that might work for you. Right below where the memory is initialized in the main.py file, uncomment Then in the
Using the user state, the
If this solution doesn't work for what you are trying to do, please let me know and I will look deeper into the issue you are having with sessions. |
Thanks for your reply @tdurnford. simply this is what i want. so.... by using this, we could save user information right? and its for multi user that's all. Thanks alot! and i think this is what @varunreddycs asked for state data. if we have example code with this it will be better for the starter. if you don't mind i would like to ask one thing more that how can i use adaptive_card button data as an input? example i have a Card with button value yes or no. on javascript or c# botframework i could see their value can be in the chat text, or as input value. i'm waiting for you great answer :) |
Yes, you can store user information such as name and id in the user state and the data will be preserved for each user between conversations. In regards to your second question, the Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow. The official Bot Framework Github repos are the preferred platform for submitting bug fixes and feature requests. However, if you send me the link for your question on Stack Overflow, I will gladly take a look at it. |
🚨 The issue tracker is not for questions 🚨
If you have a question, please ask it on https://stackoverflow.com/questions/tagged/botframework
i'm testing on botframework emulator then session is always clear per question.
im not sure if problem is botframework , emulator or my code. what i want is if i save session name and value it must be kept. please check this issue. example result below (but value must be all same) i just used your Rich-Cards-Bot sample:
User_code: O6ZzukPijRcjY18w
User_code: 0E1nfH6m2tMuDRcW
User_code: erZyRVLMEiM2cS7I
User_code: 1lb4Kj5azHydF59K
User_code: PORfe9xn5M2beGuh
User_code: 9nZQxgocpJI32keb
User_code: GaCLP8FkyzgZOfp4
User_code: 0ykPMoFQzDC7rtap
User_code: p7EhxhMF4XFca7EL
User_code: Ys6V372dFuddG5Ol
User_code: LfIIMt05fMkldTE4
The text was updated successfully, but these errors were encountered: