Log out on idle time


#1

Hello,

is there a way to auto log out if there is idle time of more than 5 minutes?

Thanks in advance


#2

In your config/config.php:

/**
        
         * The lifetime of a session after inactivity; the default is 24 hours,
        
         * expressed in seconds.
        
         */
        
        'session_lifetime' => 60 * 60 * 24,

#3

i have no clue in php.
what should i write for 5 minutes?

‘session_lifetime’ => 60 * 5 , ??? does it makes sense?


#4

Yes. The time is in seconds, you can carry out the calculation yourself and use 300 instead.


#5

i did it, doesnt work for me, any other things i have to do?
i copied the line from the sample file to config file.


#6

Doesn’t work for me too.


#7

You should file a bug report on https://github.com/nextcloud/server/issues If you create a new issue, there is a template to gather all important information.