Skip to content
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

Concurrent sessions from the same browser #746

Open
yaodaniel opened this issue Oct 5, 2024 · 2 comments
Open

Concurrent sessions from the same browser #746

yaodaniel opened this issue Oct 5, 2024 · 2 comments

Comments

@yaodaniel
Copy link

Hello,

I'm using lex-web-ui and have a working website with it running in an iframe. While testing I noticed that if I were to open my website in multiple tabs in the same browser and try to send messages all at once in each tab's instance, the messages I sent are handled sequentially by my backend lex bot lambda. This is not the case if I were to open the website in 2 different browsers.

I'm suspecting this is may be due to how AWS Cognito authentication puts the userID within local storage or something within the lex-web-ui logic itself that's detecting and preventing the concurrent executions from the same user (sessionID) within the same browser but I'm not sure. Could some one provide some insight and potential ways I can get around it if it exists?

My issue is similar to what was asked here: #89

@israelias
Copy link
Contributor

@yaodaniel Are you wanting sessionId/userId to be registered uniquely per IP address (browser agnostic aka "sequential") or per initialized conversation (per website aka "concurrent")?

@yaodaniel
Copy link
Author

@yaodaniel Are you wanting sessionId/userId to be registered uniquely per IP address (browser agnostic aka "sequential") or per initialized conversation (per website aka "concurrent")?

Ideally what I'm looking for is per initialized conversation, such that a single person can open multiple tabs of my website which would instantiate multiple conversation instances and they can all be handled concurrently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants