Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84249members
353348posts

[Imported] Implement Session Timeout in WebX

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

Solved
sbeadle
Janeway Janeway
Janeway
0 Likes
2
907

[Imported] Implement Session Timeout in WebX

>>Message imported from previous forum - Category:ClearSCADA Software<<
User: rlao, originally posted: 2019-11-14 04:41:37 Id:627
Is there something in ClearSCADA to terminate a WebX client session after it has been open for too long?

Our users have a habit of leaving WebX open in the background and then not shutting down IE after they've left work for the day. The WebX session then stays open for several days using up a licence.

Having the ability to do something like kill WebX sessions after 24 hours of uptime and force them to reload the session would be useful to reduce occurrences of this.


Accepted Solutions
sbeadle
Janeway Janeway
Janeway
0 Likes
1
906

Re: [Imported] Implement Session Timeout in WebX

>>Responses imported from previous forum


Reply From User: adamwoodland, posted: 2019-11-14 05:34:19
Which WebX? DBServer hosted or IIS hosted?

With DBServer hosted WebX there was a trick to add a meta HTML tag to each page that after a certain time period (12 hours in your case) it would redirect them to Google.

Haven't looked into it for WebX hosted. Maybe IIS itself has something.

 


Reply From User: rlao, posted: 2019-11-17 23:06:11
DBServer hosted. I'm interested in this little trick Adam, care to share? 😉


Reply From User: adamwoodland, posted: 2019-11-18 07:32:02
Sure, if you keep that water flowing to my house! They have made this easy in recent versions...

On the server go to "C:\\Program Files\\Schneider Electric\\ClearSCADA\\WWW\\XSL" and backup "common.xsl"

Open common.xsl, at the top look for:

 

It won't look exactly like that, the refreshURL will be blank. But set it to something like the above and after x seconds (120 in my case) it will redirect to Google. Each time you view a new page the counter restarts...


Reply From User: adamwoodland, posted: 2019-11-18 23:23:16
Also watch out for client-side caching with those xsl, I had to reopen IE to test it properly.

See Answer In Context

2 Replies 2
sbeadle
Janeway Janeway
Janeway
0 Likes
1
907

Re: [Imported] Implement Session Timeout in WebX

>>Responses imported from previous forum


Reply From User: adamwoodland, posted: 2019-11-14 05:34:19
Which WebX? DBServer hosted or IIS hosted?

With DBServer hosted WebX there was a trick to add a meta HTML tag to each page that after a certain time period (12 hours in your case) it would redirect them to Google.

Haven't looked into it for WebX hosted. Maybe IIS itself has something.

 


Reply From User: rlao, posted: 2019-11-17 23:06:11
DBServer hosted. I'm interested in this little trick Adam, care to share? 😉


Reply From User: adamwoodland, posted: 2019-11-18 07:32:02
Sure, if you keep that water flowing to my house! They have made this easy in recent versions...

On the server go to "C:\\Program Files\\Schneider Electric\\ClearSCADA\\WWW\\XSL" and backup "common.xsl"

Open common.xsl, at the top look for:

 

It won't look exactly like that, the refreshURL will be blank. But set it to something like the above and after x seconds (120 in my case) it will redirect to Google. Each time you view a new page the counter restarts...


Reply From User: adamwoodland, posted: 2019-11-18 23:23:16
Also watch out for client-side caching with those xsl, I had to reopen IE to test it properly.

rlao
Lieutenant
Lieutenant
0 Likes
0
891

Re: [Imported] Implement Session Timeout in WebX

The common.xsl snippet in Adam's original response didn't make it through the import.

 

Looks like code snippets aren't properly supported yet as I'm unable to copy the XML with the element brackets without throwing up an error. However, I can disguise it as plaintext.

 

In common.xsl, you should be looking for:

 

xsl:param name="refresh" select="120"

xsl:param name="refreshUrl" select ="'https://www.google.com'"