How to debug users geting automatically logged out for unknown reasons?
This issue is solved by updating this setting

ini_set('session.cookie_lifetime',  21474836); The original value '2147483647' is too big for some reason.