Skip to content
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

Closed
cebe opened this issue May 22, 2018 · 11 comments
Closed

Session timeout while editing content #128

cebe opened this issue May 22, 2018 · 11 comments

Comments

@cebe
Copy link
Contributor

cebe commented May 22, 2018

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.

@nadar
Copy link
Member

nadar commented May 22, 2018

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.

@cebe
Copy link
Contributor Author

cebe commented May 22, 2018

Yes, this was one text area open and typing all the time. All text was lost :-/

@cebe
Copy link
Contributor Author

cebe commented May 22, 2018

Is there a setting for the timout? Or how is it determined?

@nadar
Copy link
Member

nadar commented May 22, 2018

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.

@nadar nadar self-assigned this May 22, 2018
@cebe
Copy link
Contributor Author

cebe commented May 22, 2018

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.

@cebe
Copy link
Contributor Author

cebe commented May 22, 2018

It may also be useful to show the time to logout somewhere, to make users aware that it exists. My bank for example has this:

bildschirmfoto von 2018-05-22 23-15-48

@nadar
Copy link
Member

nadar commented May 22, 2018

Good idea, will do some research tomorrow and provide a good solution! Thanks and sorry.

@cebe
Copy link
Contributor Author

cebe commented May 22, 2018

Thanks for the fast response! I really like what you have created with luya so far :)

@nadar
Copy link
Member

nadar commented May 22, 2018

@TheMaaarc Maybe we could use the circle of the users online icon in order to indicate the idle time.

red/black = percentage idling
green = percentage until logout

(or the opposite around, not sure yet what makes more sense in terms of color)

bildschirmfoto 2018-05-22 um 23 29 22

(something like this - well yes could not find any better picture by googling with keyword "circle outline border indicates green")
image

@nadar nadar added the design label May 22, 2018
nadar added a commit that referenced this issue May 23, 2018
nadar added a commit that referenced this issue May 23, 2018
nadar added a commit that referenced this issue May 23, 2018
nadar added a commit that referenced this issue May 23, 2018
* 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
@nadar
Copy link
Member

nadar commented May 23, 2018

@cebe give it a try if you like, let me know what you think. Thanks for the input and sorry for the data loss.

@nadar nadar closed this as completed in d6e2676 May 23, 2018
@cebe
Copy link
Contributor Author

cebe commented May 27, 2018

nice 👍 thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants