-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Session timeout while editing content #128
Comments
I am sorry to hear that. Where you editing inside a textarea for the whole time? Because if you trigger any action (click somehwere, save, update, drag) this will reset the timeout timer to 0. |
Yes, this was one text area open and typing all the time. All text was lost :-/ |
Is there a setting for the timout? Or how is it determined? |
Sorry for that! Usually people are using blocks moving, editing, which will always refresh timeout timer to 0. Yes you can configure this in admin 1.2 => https://github.com/luyadev/luya-module-admin/blob/master/src/Module.php#L155 What would you suggest in order to determine whether an user is working on a textarea or is idling? Maybe check the last timestamp of a key stroke and provide this information to the timestamp ticker which is running each 2 min. |
could be an option. |
Good idea, will do some research tomorrow and provide a good solution! Thanks and sorry. |
Thanks for the fast response! I really like what you have created with luya so far :) |
@TheMaaarc Maybe we could use the circle of the users online icon in order to indicate the idle time. red/black = percentage idling (or the opposite around, not sure yet what makes more sense in terms of color) (something like this - well yes could not find any better picture by googling with keyword "circle outline border indicates green") |
* Prepared timeout indicator for user #128 * add stroke offset calculation #128 (#130) * Hide timeout circle if idleStrokeDashoffset is 81; Updated styles; #128 * refresh timestamp for current user online entry if a key is pressed. #128 * Updated timeout detail and timeout circle; #128 * add relative time until logout * add minute indicator #128
@cebe give it a try if you like, let me know what you think. Thanks for the input and sorry for the data loss. |
nice 👍 thanks! |
I just faced the situation that while typing a long text in CMS the session timed out and I got logged out automatically while typing. There should not be an auto login while a user is actively working in the backend.
The text was updated successfully, but these errors were encountered: