Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.

LOGOUT action

JayBell

Hello support,

Is there any help available for the LOGOUT action I see when typing a rule? Ideally I'd like to force the user out of the system when a condition is met but I know back in 2006 you said it wasn't possible to do it from a process.

I've tried LOGOUT LoggedInRegularUser but this gives an invalid parameter at runtime.

At the moment I have to tell the user to click the Logout button I've made as prominent as possible in the menu bar but that's not pretty and of course, there's no guarantee they will. The system is designed for young children to use and I can see problems looming ahead as they are not keen to experiment and may have trouble reading.

Thanks,

Jay


tford

Hi Jay,

Create a process with SystemUser as ProcessInput.

The process will have 1 rule: LOGOUT SystemUser

You can then call this process from a Query of SystemUser that displays users.

I have a process which allows administrators to see who is online & log them out:

FIND SystemUser WHERE SystemUser.ID IS DEFINED IN BATCHES OF 1
DISPLAY 'Users Logged On Now'

Users have a rule:
If NMB_OF_SESSIONS(RegularUser)>0 Then
RegularUser.LoggedOnNow='Yes'
Else
RegularUser.LoggedOnNow='No'


tford

PS .. reminder Jay .. asking for help w/ AwareIM functions / usability should be in the General Discussion forum category.


JayBell

Sorry for posting in wrong area. I can't quite see how I'm going to use your kind example though. This particular system gathers data from anonymous members of the public. They visit my website and get logged in as guests when they press a button. Permissions and VP allow them only to see my data capture form. When the data has been "sent" (The Create button has been pressed) they are left with a blank aware screen and have to click Logout themselves. Can this part be automated?


tford

Have not tried what you are attempting, but perhaps you could adapt your process.

FIND SystemUser WHERE(SystemUser.ID=LoggedInSystemUser.ID)
LOGOUT SystemUser

Anxious to know if this will work.


JayBell

Hi Tom,

No, sorry, that doesn't work either 🙁 "Invalid format of the parameters for LOGOUT action in rule......"


JayBell

Does anyone else have any ideas on this please? To reiterate, my application is started when a visitor clicks on a button on my website. The application collects some data from the user and then when a button is pressed it should quit and leave the user back on my webpage. At the moment after the Aware form closes the user is left with the Aware Window and has to click the Logout button which is in the top left and very small. It's simply not intuitive and the user sits around wondering what to do next.


tford

Could you just use this at the end of your process since you are using guest access?

DISPLAY URL 'http://www.websitename.com' FULL SCREEN


JayBell

Thank you Tom. That works perfectly thank you - I guess I was barking up the wrong tree by trying to force user out! Great work, thanks again.