Click here to Skip to main content
15,896,489 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hai

i have website with master page,in master page i am use page timeout expiry(website ideal) for 15 mins if user again use website timer will restart like as follow

JavaScript
    <script type="text/javascript">
    var logoutUser = false;
    var timeoutHnd = null;
    var logouTimeInterval = 15 * 60 * 1000; // 15 mins
    function onuser_activite() {
        if (logoutUser) {
            ;
        }
        else {
            ResetLogOutTimer();

        }
    }
    function OnTimeoutReached() {
        logoutUser = true;
        alert("You have been automatically Log Off from the system !");
        window.location.href = "Logout.aspx";

    }
    function ResetLogOutTimer() {
        clearTimeout(timeoutHnd);
        // set new timer
        timeoutHnd = setTimeout('OnTimeoutReached();', logouTimeInterval);
    }


    document.body.onclick = onuser_activite;
    timeoutHnd = setTimeout('OnTimeoutReached();', logouTimeInterval);
</script>


In child page i use AD(Active Directory) to retrieve data.if i click and retrieve data from AD it take long time(30 mins) and also "PageRequestManagerTimeoutException" bcz by default it wait for 90 secs,So what i do ,i remove the timeout expiry from my master page and increase the pagerequest manager time 90 secs to 10 hrs based on this example Solution of Error "PageRequestManagerTimeoutException" using DNN Framework[^] and it works,i mean it retrive data form AD and then page get referhed.

My problem is i need to use page time out expiry for 15 mins,bcz if website ideal for 15 mins automatically show msg and logout the user.so how i handle this i mean need to retrive data form AD (it take 30mins) and also website idleal for 15 mins need to logout the user.


How my page time out expiry work ? bcz it retrieve data form AD(up to 30 mins) then website not
ideal ?? my time out expiry is restart timer again ? (bcz i am restart timer in document.body.onclick = onuser_activite; data retrive from AD is not document.click event)



Pls reply asap....


Regards
Aravind
Posted
Updated 16-Feb-14 18:54pm
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900