It would be nice to have a Counter reset button in the countdown block, counter can make you nervous and distract if you're writing something long and don't want to keep refreshing the page even if in another tab.

Is there a way to do this without refreshing the page?

Comments

jvandervort’s picture

Version: 6.x-2.2 » 6.x-2.x-dev

Moved to the current dev head.

dandrews’s picture

Version: 6.x-2.x-dev » master
Status: Active » Postponed

I rather like this idea, adding a button to the countdown block to reset your time-out would be useful. This is a rather old issue however and not one I have seen a lot of people requesting. That doesn't mean however that I will not work on something like this for a future release. Postponed for now, if I have some extra time I will see about getting this feature working an added.

Also removed the version because if something like this is done, it might be a features used in all x.x-2.x (the 2.x branch) versions.

I have spent some time on this, and well its definitively possible... but its all a matter of how much of the module I want to re-write in order to do it. You may or may not know that the timer is a block that has some Javascript that counts down from a given amount of time. JS is client sided, meaning it can not directly interact back and forth with the PHP powering the page. This means in order to have the JS tell the PHP it needs to extend the session it would need to do a refresh.

Long story short doing this without a refresh on the page your currently working on so that data is not lost. Would be a rather difficult and require a reworking of how the module functions.

However I do believe their is an easier fix then a button that you can use to reset the trimmer when working. A version of the Autologout module has a chunk of code that checks to see if the user is entering data and resets the timer so that they will not be logged out (I believe the version is 7.x.-2.x). Adding something like this to 6.x-2.x should be fairly straightforward.

However I am leaving this issue as postponed because it is possible to-do, rather intuitive and overall a feature I would like to see implemented.

dandrews’s picture

Status: Postponed » Active

I am currently working on this feature, I have made significant progress however am working through a few bugs at the moment.

What I see happening with this is a new branch being created, it will be a mix of the current -2.x and -4.x branches with a few changes to both. This however is something I have yet to discuss with the head maintainer of the module. Once the details of how we want to handle this I will release a dev version.

Currently the module works as it did with a few exceptions. There is now a button that when click resets the autologout time and the visual timer. However there is the issue of the original and subsequent timers performing a page refresh when they run out. It was designed to do that, but disabling solves the issue. So when the timer runs out now, the user is not instantly logged out. It happens when they try to refresh or load a new page. Everything else seems to be working just fine.

dandrews’s picture

Version: master » 7.x-5.x-dev

This is now in the works! The new branch will have this requested feature and will combine features from both branches. This is currently in dev and not available for download yet. We want to get some bugs worked out and make sure upgrading from a previous branch to this one keeps all you previous settings intact.

rooby’s picture

Version: 7.x-5.x-dev » 7.x-4.x-dev

Assuming this should be for 4.x at this stage?

johnennew’s picture

johnennew’s picture

Status: Active » Fixed

Inside the 4.x development branches now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.