106
Views
13
Comments
After LogOut, Login Page reloads on Re Log in
Question
Application Type
Reactive

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.

2023-11-20 06-53-17
Neha Rathore

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

Thanks
Neha Rathore


UserImage.jpg
Shivang Shukla

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. 

2025-01-09 14-56-57
IQ78

Did u try to open in New Incognito Window in the browser?

UserImage.jpg
Shivang Shukla

yes, i just did that, same thing happening

2025-01-09 14-56-57
IQ78

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.

UserImage.jpg
Shivang Shukla

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.

2024-05-06 07-41-12
Narendra Tiwari

Hi Shivang Shukla ,

Have you tried with different browser?


UserImage.jpg
Shivang Shukla

yes, same thing

2024-06-24 04-49-49
Princi

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

UserImage.jpg
Shivang Shukla

i did put a js code inside of the clientLogout method to mitigate the problem for now.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Shivang,

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:

  1. Does this happen, with any browser (Chrome, Edge, Firefox)?
  2. You mentioned it worked fine before, so did you maybe change the login/logout logic?
  3. Possibly a colleague developer changed something that you are not aware off, you could check the module version history and see who worked on the module.
  4. Was your platform version recently updated? You can check this with the person responsible in your organization for the platform upgrades.

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

UserImage.jpg
Shivang Shukla

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.

2023-11-05 14-47-05
Thuan Pham Dinh
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.