561
Views
4
Comments
Solved
Log out users on Reactive
Question

To 'close' an application in order to do configurations, I'd like to log out all users. Judging by this forum post, it can be done with OnBeginWebRequest. However, we have a Reactive Web App in which I can't find this server action. I also can't find any actions related to sessions.

How can I log out all users on a reactive web app then?

2021-02-16 20-34-58
Remco Snijders
 
MVP
Solution

Hi Amol,

I went for the 'OnInitiate' approach of the UserInfo webblock indeed (combined with checking the value of a Site Property). So not the ideal solution, but it worked.

2021-11-19 11-12-44
Rui Mendes

Hello Remco Snijders,

I was thinking about your question, and developed the attached method.
In this example I developed two actions and a site proprertie.
- The site proprertie serves to indicate the date that each user has to login again. Without this, users would be in a loop to log out.
- An action to logout
- An Action to check if the user has to log out.

ForceLogout.oml
2021-02-16 20-34-58
Remco Snijders
 
MVP

Rui Mendes wrote:

Hello Remco Snijders,

I was thinking about your question, and developed the attached method.
In this example I developed two actions and a site proprertie.
- The site proprertie serves to indicate the date that each user has to login again. Without this, users would be in a loop to log out.
- An action to logout
- An Action to check if the user has to log out.

Hi Rui,

Thanks for taking the time to set this up. For now I want for the 'OnInitiate' approach of the UserInfo webblock indeed (combined with checking the value of a Site Property).

The downside is that a lot of interaction happens inside one page and the webblock is not re-rendered while you stay on that page. Therefore I was hoping for a OnBeginWebRequest equivalent.


UserImage.jpg
Amol Rane

Hi Remco,

Is this query resolved? If so, what was the solution used?

2021-02-16 20-34-58
Remco Snijders
 
MVP
Solution

Hi Amol,

I went for the 'OnInitiate' approach of the UserInfo webblock indeed (combined with checking the value of a Site Property). So not the ideal solution, but it worked.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.