Register | Login

Quick search in Advantech Support Portal 
Print

How to Implement the Auto-Logout function in AStudio

Disable Highlight

How to Implement the Auto-Logout function in AStudio

How to Implement the Auto-Logout function in AStudio?
Share |

TOP

The AStudio does not have this function, but you can use the scheduler to do that.
Users can declare a tag as integer called “logoffCounter” and in the scheduler you can insert a clock item that always increment this tag every second.(00:00:01)
(Tag: logoffCounter, Execution: logoffCounter + 1).

Then you can add in all the buttons or links of your application a reset line for this tag. (logoffCounter = 0).
If the tag “logoffCounter” is higher or equals 60 (one minute),for example, you execute a Script with the command logoff().
Share |

TOP

pret auto
That's what I'm concerning about. Anyone can tell more detailed?
many thanks in advance

[ Last edited by rainbow2009 at 2009-4-28 15:22 ]
Share |

TOP

There is also a built-in function to detect when the last user event (mouse move, button click) happened.

NoInputTime() contains the number of seconds since the last user activity.
Share |

TOP

That's pretty nice^^
thanks
simulation credit auto
Share |

TOP

What about this:


You should be able to right click on "Security " then go to  "Groups", then  "Advanced", here you should find a field "Auto log-off"


This sets the number of minutes, but you can choose:
  • count time after login
  • count time after last action


Hope this helps.


HMIGeek
Share |

TOP

Glad i found this thread. I was actually curious about the same thing. I hope someone here can explain more. I'm still kinda confused.



Regards,
Marcus
Placement financier
Share |

TOP