New to Qlik Analytics

If you’re new to Qlik Cloud or Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!

Who Me Too'd this topic

krilk
Contributor II
Contributor II

Reset Qlik timeout with WebSockets

Hello.

 

We've got a business requirement to work around the Qlik virtual proxy timeout. Hence it is impossible to change the URL that the user is directed to upon timeout logout, we've developed an extension that would keep it's own internal counter, and display a modal before scheduled Qlik timeout would occur, giving the user a chance to 'refresh' their session, or be redirected to one of our URLs.

We are resetting our internal timer on every click within the page, however for the above solution to be successful, we also need to reset the Qlik internal timer at the same time. So far, we're sending WebSocket messages to the engine:

OpenDoc -> ClearUndoBuffer (chose something that would be relatively non-intrusive to the user, yet would communicate with the engine (?)).

Now this *seems* to work in our dev environment and delays the Qlik timeout successfully. This is however not the case on the UAT and PROD environments. Responses for all environments are the same :

 

{"jsonrpc":"2.0","method":"OnAuthenticationInformation","params":{"userId":"xx","userDirectory":"INTRANET","logoutUri":"ws://xxx:80/qps/user","mustAuthenticate":false}}
14:36:49.400 VM88614:34 

{"jsonrpc":"2.0","method":"OnConnected","params":{"qSessionState":"SESSION_ATTACHED"}}
14:36:49.410 VM88614:34

{"jsonrpc":"2.0","id":1,"result":{"qReturn":{"qType":"Doc","qHandle":1,"qGenericId":"a6aa9747-597b-4e26-aaf2-4d1987b05020"}}}

 

With this, I need help with the following:

 

1. Is the WebSocket strategy a valid one, is there a better message to send than ClearUndoBuffer  that would be more robust in what we're trying to achieve?

2. What configurations should I be looking for to see why there are differences between dev & uat/prod environments in respect to the current approach?

 

I realise we're trying to hack our way through the functionality that was never intended to work this way, but our experience is that it's always the case with Qlik, combined with poor documentation simple things like these become real challenges.

 

Thank you

 

Labels (6)
Who Me Too'd this topic