Giter Club home page Giter Club logo

moodle-an-hochschulen / moodle-local_session_keepalive Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 2.0 112 KB

Moodle plugin which checks for unsent user input in the browser and keeps the user session alive as long as needed to prevent that user input which is sent to the server after the user session has expired will be lost

License: GNU General Public License v3.0

JavaScript 17.08% PHP 70.09% Gherkin 12.83%
moodle moodle-local moodle-plugin

moodle-local_session_keepalive's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

tooolbox alivin70

moodle-local_session_keepalive's Issues

Add a final end for keeping sessions alive

Currently, the plugin keeps a Moodle session alive forever. It would be worthwhile to add support for a final end, for example after 7 days, so that the browser does not ping the server forever.

Re-build the mechanism to keep the session alive

In Moodle 3.8 / MDL-34498, Moodle Core changed the Ajax Endpoint for keeping sessions alive, which this plugin used up to then, to a real webservice (see moodle/moodle@4e1ee0b).

To keep things working, the removed script is shipped within this plugin since then (see af992c1).

However, it would be good to re-build the mechanism to keep the session alive to use real Moodle webservices as well

Moodle 3.1 compatibility

Sorry for posting my question here. I am really interested whether your pluging works correctly with moodle 3.1?
Petr.

Suggestion to add capabilities

It would be a wonderful addition to add capabilities or exclude roles from keepalive sessions. For example, it may be good for an admin to keep a session a live, but for students I think it would be better to limit it to certain time.

If this plugin would be modified to include this, it would be wonderful.

Thanks,

Add support for H5P editor

The H5P Editor is loaded in an iFrame which means that the plugin does not catch changes in H5P editor forms. This should be improved, if possible.

Set keepalive min value to 1

We need to set the minimal interval to session timeout with 1, not 10

P.S. PHP 7.1 in production for 1 week work well - thanks for plugin

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.