Git Product home page Git Product logo

Comments (4)

JillElaine avatar JillElaine commented on August 20, 2024

Are the main page and the i-frame pages from the same domain & sub-domain? Are you loading the idleTimeout script only once for your site? Please load the idleTimeout-for-testing script and watch the Javascript console for errors. Perhaps you will be able to see where the script is not passing the logout function from the i-frame to the main page.

from jquery-idletimeout.

elector-zz avatar elector-zz commented on August 20, 2024

It's all coming from the same domain and the script is loaded once. I'll give it try with the testing script. Thank you for a super fast reply!

from jquery-idletimeout.

elector-zz avatar elector-zz commented on August 20, 2024

I have found that the following change works in my scenario:

logoutUser = function () {
  store.set('idleTimerLoggedOut', true);

  if (currentConfig.sessionKeepAliveTimer) {
    stopKeepSessionAlive();
  }

  if (currentConfig.customCallback) {
    currentConfig.customCallback();
  }

  if (currentConfig.redirectUrl) {
  from: window.location.href = currentConfig.redirectUrl;
  to: window.top.location.href = currentConfig.redirectUrl;
  }
};

from jquery-idletimeout.

JillElaine avatar JillElaine commented on August 20, 2024

Thank you for your research and proposed solution. I am not able to make changes to the code at this time, but will leave your issue open so that others with this problem can see it.

from jquery-idletimeout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.