How to maintain consistent login states when data-ms-logout action stops working in member dashboards? Answered
Hello. There was an issue with logging out. "data-ms-action=logout" does not currently work.
It used to work fine, but suddenly this problem arose. Is there anything that could cause a conflict?
Comments
4 comments
can you send a live link to your site so I can test?
Thank you. I just found the reason and 'data-ms-form=signup' on signup modal caused the issue.
I solved it by changing it to 'data-ms-content=!members'.
Hi everyone! i'm working on a page with unique members dashboards. My problem is that when a member closes the widnow/browser without loggin out and then opens the page again, they don't see they're logged in (and can't see their dashboard) but they actually are...anyone knows how to solve that problem? thanks!!
Hey lucia yanguas, could you share what the logged in user sees after closing the window and opening it again to navigate to their dashboard? Like does it get redirected to something else when they try to access their unique dashboard despite of being logged in?
If yes, could you share the site, so that I can test this experience out?
And in case you mean the flow where a user closes the window and tries to access the site's homepage (probably for logged out users) again and has no clue that they are logged in, I believe to solve this, you can make use of login redirects combined with the custom code as follows:
In your case, if you have a public homepage that logged out users usually go in order to revisit the site (without knowing that they are logged in), including this code in the body section of that page, would redirect them to their unique dashboard (if you have set it as login redirect for the users). Make sure you include this in a page where you don't want logged out users to visit, so that all logged in users can automatically be directed to their dashboard without having them to wonder regarding their login status.
Let me know if you are facing some other issue / looking for something else.
Please sign in to leave a comment.