Multi-User Applications with Anvil

I follow the https://anvil.works/blog/multi-user-apps to create Multi-User to-do App. I follow this tutorial and it works(thanks), but problem is that it always login with only one first user and does not show login form for other user to login. please help

I’m guessing here, but are you trying to login again in the same browser, even if it’s from a different tab? If so, then the browser session “remembers” you through a cookie, so doesn’t offer a login form again unless you logout first.

So, either create a logout button/link that calls

anvil.users.logout()

then refresh the page and you should get the login form again.

Alternatively, try a different browser which won’t be aware of the other cookie. A third way would be to use a plugin on Firefox (there’s probably a Chrome equivalent) like Containers which can isolate tabs so you can login to the same application multiple times (https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/).

1 Like

Go and uncheck the remember check_box then everytime you run the app it will pop up the login form

1 Like

In case you are not sure where to find the “remember me” box, it is in the Users service

sc

sc2

1 Like

thank you much @david.wylie its working now.