older user data persistent in bot on logout
# 🤝help
l
Hi, I am using react embedded webchat When I login with 2 time with other user credentials, chatbot still loads older users email name
h
Hey, does it work in the emulator?
l
No as simulating this in emulator will be difficult , I have used react to host chatbot
workflow in studio
And when lifecycle.ready invoked i am sending trigger
h
Does it manage to extract the correct user_data there in the welcome node?
l
yes it does, But the problem i am facing is when i logout and login again with other user, It still persist old user's data, it prints old users name, email, i have tried unloading / deleting script from window object window.botpressWebChat but if we reload page it works fine
@hundreds-battery-97158
h
looks good
is it a permanent solution
l
no it is not
is there any alternative you have in mind?
4 Views