I need to identify the Root cause of Perspective session TimeOut

Hi,

As per our configuration we haven’t configured any settings related to session timeout. We have developed the screens in perspective. In our TABs where the operator uses near by machines, it is getting automatically logged out. We checked in the gateway settings and Designer project properties there is no such settings we enabled. So how to troubleshoot this and what might causing this issue?

Need support here

Thanks

Are your tablets going to sleep? That will break the connection. (Or a power saver suspending the app.)

Hi,

Yes, We suspected that but it was disabled and it won’t go to Sleep or power saver. But I will cross check once again. Do we get the logs @ the time of logout? Or using any scripts we can write to the logs for each timeout. So that we can narrow down the behavior whether it is happening periodically.

Yes, you can use the Perspective session shutdown event to diagnose this, but only from the gateway side. When it fires, you will need to examine the client.

Ok Thanks

If I write the script to log the record for session timeout… We can able track this down…

let me check

I have created the below script on Session shutdown and will try to monitor the behavior. I have included the session Id also along with message. Since there are multiple Tablets available need to identify from which session got logged out. Will that work? or is there any better handling?

def onShutdown(session):
# Session Event Script: onShutdown
    logger = system.util.getLogger("myLogger_sessionmonitoring")
    session_id = session.props.id
    logger.infof("Session Logged Out_SessionId: %s", session_id)

Consider putting a label in your docked menu (or make a shared docked view) that displays the session ID for easy comparison to the log.

ok I will do that… As an alternate approach is it possible to keep the screen active by running gateway scripts periodically. So it avoids logout incase of operator inactivity

No.

Did you try to set your project timeout to 0 and your IdP timeout? I ran into this situation a couple times where the IdP timeout was still the default value and changing that to 0 solved their auto logout issue.

(By default, there are timeouts, so saying that settings have not been adjusted would mean it's working as intended)

Ok, I am not aware of this w.r.to IDP timeout. Where i need to set zero to this value ? So that I can try this option as well

The Ignition Documentation should be able to help walk you through that.