Does anyone know from where instanceid cookie is created

In nextcloud 28 version. I can see a cookie (marked in red box) in my browser’s cookie section. The cookie name is value of ‘instanceid’ variable defined in /config/config.php file.

Does anyone know the code line or file from where this cookie is set?? I need to change its Expires/Max-Age setting for a security measure.

You don’t need to tamper the code for that:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#user-session


ernolf

I already tried ‘remember_login_cookie_lifetime’ => 1800 & ‘session_lifetime’ => 1800

Still Expires/Max-Age for instanceid cookie is “Session”

You should play around with session_keepalive and auto_logout then


ernolf

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.