-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
NextCloud stays logged in #11325
Comments
I have the same problem, I even added 'session_lifetime' => 600 (5 minutes?) to the config and it didnt work. I noticed that it's doing a POST request every minute or so to get notifications which is probably what is keeping the session alive. Perhaps there should be some kind of throttle/threshold and the "heartbeat" should be sent if the mouse cursor was last active (onmouseover on document). |
@nexus186: The option you're looking for is called |
Well I now set this into my config:
Thats works for me when closing the browser to get logged out. |
Well, it's not up to me to give an answer on that question. :-) |
I think the bug is still there. I added 'session_keepalive' => false, 'session_lifetime' => 600, to the config and then closed and reopened by browser. Now if I'm inactive for 5 minutes, the session on the server side times out but the web interface still shows the authenticated view (file list, admin settings etc). If I click on any links or reload the page, then it redirects back to the login screen. It should instead redirect back to the login screen the moment the session times out on the server side. |
We had long discussions about this: the most often use case is to stay logged in and just use Nextcloud. If you actively want to be logged out you can use the menu item for logout. Thus this works as it should and I will close it. Thanks |
@MorrisJobke Just wondering of the claim that "the most often use case is to stay logged in and just use Nextcloud" is backed by actual data... I personally do not access the web interface of Nextcloud that often as there is some nice desktop integration for both Windows, MacOS and Linux. So the times I use the Nextcloud web interface is in most cases when I do not have access to my own devices (and hence are working on a public or someone else's computer). I really do not want that I accidentally stay logged in on the latter devices. In Nextcloud 13 we had the option: on devices we trust one additional click to stay signed in and just no worries on devices we don't trust (closing the browser took care). In Nextcloud 14 I actually have to remember each time to actively log out (or trust strangers for doing it for me...). Especially with the introduction of 2FA, this move doesn't make sense to me. People are motivated to use 2FA but actually, once logged in, you don't even require 1FA (aka the user's password) as you stay logged in by default. From a security point of view, this is a huge risk IMHO. |
We don't actively gather any broad telemetry on actions like this, so we can't proof this by an empirical study. Nevertheless we are in exchange with users like you that give us feedback on the behavior. And we got a lot of feedback, why it doesn't stay logged in. As well we are checking how other products do this from a UX point of view. Thus we had some longer discussions here on GitHub about this (give it a search and you can find it). Also the bigger case is that people use their own devices more often than other peoples devices (in general over the broad mass and not on a per individual basis). Our general aim is it to make Nextcloud a good solution by default with an as good as possible UX without the need to tweak anything and still give it the options and features it really needs for security focused people. |
Steps to reproduce
Expected behaviour
Login screen should come up
Actual behaviour
Im still logged into my account even if there is no checkbox for "stay logged in" or something like that, and I also set "'remember_login_cookie_lifetime' =>" to 1.
Server configuration
Operating system: Ubuntu 16.04
Web server: Apache2
Database: MySQL
PHP version: 7.0
Nextcloud version: 14.0.0
Updated from an older Nextcloud/ownCloud or fresh install: Fresh
Where did you install Nextcloud from: Official Nextcloud page
Signing status:
Signing status
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
or
Insert your config.php content here.
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)
https://pastebin.com/QYNYBKNz
The text was updated successfully, but these errors were encountered: