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

  • SEARCH
  • Home
  • 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 8985549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:21:20+00:00 2026-06-15T21:21:20+00:00

The application I am using is implementing some session timeout prompt using jquery. There

  • 0

The application I am using is implementing some session timeout prompt using jquery. There is a timer that counts and if there is no user activity after predefined X minutes it shows user prompt

(Your session will end soon… Continue or Logout).

It uses the approach found here – http://www.codeproject.com/Articles/227382/Alert-Session-Time-out-in-ASP-Net.

However, this doesn’t work if user opens new tab:

1) User logs in, timer starts counting user inactivity’s.

2) User clicks some link that opens in new window (for example, in our case it is a long report running). Second tab is active, there is some response (crossbacks / postbacks that doesn’t end session).

3) Second browser tab is active, there is some activity that doesn’t end session.

4) However, first browser tab is inactive and counter is “thinking” that session should be closed, it displays appropriate message and then logout user.

This is not what we want. So the given approach is just some session timeout fix, but if user is active in another tab, then application will logout user anyway. That is not the desired thing.
We have a Report Page. It functions so that it opens report in a new tab/window. And it could be run quite long. Report section take care of some callbacks, so session wont end in this tab. However, it would end in the second tab.

EDIT:
I have the following sollution: “Store a Javascript cookie and check that to determine if the session has been extended in another tab?”.
I am still trying to understand this.

  • 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-15T21:21:21+00:00Added an answer on June 15, 2026 at 9:21 pm

    You can use the LocalStorage concept, to save the last activity time.

    If you save it on one of the tabs, it will be accessible from the other tabs as well…

    This is supported on all the modern browsers.

    Example:

    When activity is detected use:

    localStorage['lastActivity'] = new Date();

    When you want to check it:

    var lastActityTime = localStorage['lastActivity'];

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

Sidebar

Related Questions

I am currently implementing the application that displays hierarchy using ListBoxes (please do not
I am using GAE Java for a multi-user application. There are multiple users with
I have an application where there's some real-time chat. The chat is implemented using
I'm writing an application that do some task and inform user upon successful completion
I am having some issues implementing RestKit/CoreData with my application. Using the RKTwitterCoreData example
I am implementing an application using ember.js and couchdb. I choose ember-resource as database
I'm implementing a web - based application using silverlight with an SQL Server DB
I am implementing input method related application in Android. In this application I'm using
I am implementing a comet using AsyncHttpHandlers in my current asp.net application. According to
I am implementing SOAP web services for a commercial application, and I am using

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.