Hello, I have been facing a problem since a few days, in my reactive web app, everything works fine, but when i log out of one user, and try to log in again, the login page reloads. If i open it in a new tab, it works like new but it happens only when i log out and re log-in. One thing i have noticed that after logging out and relog in, the page reloads but it saves some session or cookies, so that when i reopen it in a new tab, the log-in details is saved and authorized page opens up with details of the new user, whose id i tried to relog in with.
Any Help.
Hi Shivang,
What I think is there must be something missing when you re log in.. and so better to debug. Some session variable are not being set after you log out and re log in.
Hope this helps
ThanksNeha Rathore
After log in, It stores cookies, even though the page reloads, on opening new tab and reopening the page, it automatically logs in the user i had relogged in on another tab.
Did u try to open in New Incognito Window in the browser?
yes, i just did that, same thing happening
I suggest u create a new app and check if it is wrong behavior or not.
if not wrong, then there will be some logic in your former app, else there could be some wrong environment setting.
i did it yesterday, mine has a lot of pages so i transferred it one after another, and the new app also behaved the same way.
Hi Shivang Shukla ,
Have you tried with different browser?
yes, same thing
Hi @Shivang Shukla
You can try this. After successful logout, you can redirect user to the neutral page (e.g. welcome page/ Home page) instead of directly back to the login page. This can avoid reloads.
Hope this will works for you.
Regards
Prince Kumar
i did put a js code inside of the clientLogout method to mitigate the problem for now.
From the multiple replies, you can conclude that you did not share enough context for the community to effectively try to help you.
In order for community members to help better, you need to provide more context:
9 out of 10, if things worked before, and now they don't, either the code is changed, or a new version of software (OutSystems platform, OutSystems forge components, etc.) is installed
Regards,
Daniel
By "it worked earlier, i meant, we generally test it after publishing it and normally, on the first load it works, but after logging out and relogging in things go south.
hi, Did you find the solution yet ?