I want to be able to run a function to detect if the user is still logged into Salesforce.
I have been running a check against skuid.utils.userInfo.isAuthenticated to determine if a user is logged in when the page initially loads. This has worked.
However now I am attempting to re-run the function at regular intervals (so that if a user leaves a tab open for a long time and the user is logged out of SF it will also log them out of the SKUID page they are on in a similar manner to how the SKUID Editor will log you out if you log out of Salesforce from another tab.
Problem is when checking against skuid.utils.userInfo.isAuthenticated I still get a value of true even if I have logged out from another page when it is checked subsequently. I feel like perhaps the value is cached.
Is there something else I should be doing (i.e. somehow clearing this elements cache or using a different function) in order to check if a user is logged in (when checking every 20mins etc…) to avoid getting a cached result?
Question
How can I check if a Salesforce user is currently authenticated?
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
