Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)
Solved

Inactivity Lock feature

Hi,


Since SP02, inactivity lock for the Mobile Launchpad can be easily configured in NAM.

For those who are a bit impatient, we recommend setting a minimum of 60 seconds  :)


image


--------------------------------------------------------------------------------------------


If you need this functionality for Desktop Launchpad, you can checkout the code below.  You can add it in the <HEAD> part in NAM for your Launchpad.


This example is set for 60 sec inactivity, and just shows an alert. You can replace the alert with AppCache.Logout();


<script>

var timeoutID;

 

function setup() {

    this.addEventListener("mousemove", resetTimer, false);

    this.addEventListener("mousedown", resetTimer, false);

    this.addEventListener("keypress", resetTimer, false);

    this.addEventListener("DOMMouseScroll", resetTimer, false);

    this.addEventListener("mousewheel", resetTimer, false);

    this.addEventListener("touchmove", resetTimer, false);

    this.addEventListener("MSPointerMove", resetTimer, false);

 

    startTimer();

}

 

setup();

 

function startTimer() {

    timeoutID = window.setTimeout(goInactive, 60000);

}

 

function resetTimer(e) {

    window.clearTimeout(timeoutID);

 

    goActive();

}

 

function goInactive() {

    alert("Logoff");

}

 

function goActive() {  

    startTimer();

}

 

</script>


Cheers,

Julian



1 person has this problem
Login or Signup to post a comment