Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8557905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:40:56+00:00 2026-06-11T15:40:56+00:00

I would like to how does the below script works. I am trying to

  • 0

I would like to how does the below script works.
I am trying to implement a pop up for every hr to give user an option to continue else it will get logged out automatically.
It is working but my doubt is what will happen when multiple users login. will others get logged out when u press logout in your page?
To be specific will

Ext.TaskMgr.stop(taskPoll1);
Ext.TaskMgr.stop(taskPoll);

stop the taskPoll of the current script ?

<script>
var counter = 3600;
var counter1 = 20;
var taskPoll = 
{
  run: function()
  {
    counter -= 1;
    if( counter < 1 )
    {
       Ext.TaskMgr.stop(taskPoll);
       countDownComplete();
       return false;
    } 
    else 
    {
    }
 },
 interval:1000
}
    countDownComplete = function()
    {
      var taskPoll1 = 
      {
         run: function()
         {
            counter1 -= 1;
            if( counter1 < 1 )
            {
                Ext.TaskMgr.stop(taskPoll1);
            Ext.TaskMgr.stop(taskPoll);
        //  Ext.TaskMgr.stopAll();
            logout('imagelogout');
            return false;
        } 
            else 
            {
            Ext.MessageBox.updateText('You will be logged out in next <b>' + counter1+' </b> seconds. Please click on  <b> Continue </b> if you do not wish to be logged out.');

            }
    },
    interval:1000
    }
    Ext.MessageBox.maxWidth=420;
    Ext.MessageBox.buttonText.yes = 'Continue';
    Ext.MessageBox.buttonText.no = 'LogOut';
    Ext.MessageBox.confirm('Attention', 'You will be logged out in next 30 seconds. Please click on <b> Continue </b> if you do not wish to be logged out.',
    function(btn)
    {
      if(btn == 'yes')
      {
            counter=3600;
        counter1=20;
        Ext.TaskMgr.stop(taskPoll1);
        Ext.TaskMgr.start(taskPoll);
        return false;
      } 
      else
      {
        Ext.TaskMgr.stop(taskPoll1);
        Ext.TaskMgr.stop(taskPoll);
      //    Ext.TaskMgr.stopAll();
        logout('imagelogout');
        return false;
      }
    }); 
    Ext.TaskMgr.start(taskPoll1);
    }
    // Ext.TaskMgr.start(taskPoll); is the starting point of timeout Pop up
    Ext.TaskMgr.start(taskPoll);
    </script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:40:57+00:00Added an answer on June 11, 2026 at 3:40 pm

    You are talking about a frontend script which runs locally… And I don’t know any site where multiple users stays logged in on a single site, so where is the multiuserproblem?

    Talking about scope & tasks: For that case I would recommend you to destroy all all task on logout and create new on start, otherwise you may get problems with still running tasks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a photo gallery I would like that every time a user does
I would like to know how Gmail (or anyone else) does comet on Opera.
The script below illustrates a capability of set and frozenset that I would like
I would like to try some image filter features on iPhone like instagram does.
I would like to upload files just like google mail does. I would want
I would like to know how does the login procedure work in the Internet
I would like to ask what does it mean AttributeError: 'unicode' object has no
I would like to have a mapping function that does this: public static void
I would like to do this but it does not work. bool TryGetEnum<TEnum, TValue>(TValue
I would like to know how much time (in percent) does JavaScript development takes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.