{"id":887,"date":"2017-04-15T16:17:35","date_gmt":"2017-04-15T20:17:35","guid":{"rendered":"https:\/\/www.devolve.net\/blog\/?p=887"},"modified":"2017-04-17T14:12:07","modified_gmt":"2017-04-17T18:12:07","slug":"keep-getting-logged-out-from-selfoss-on-debian","status":"publish","type":"post","link":"https:\/\/www.devolve.local\/keep-getting-logged-out-from-selfoss-on-debian\/","title":{"rendered":"Keep getting logged out from Selfoss on Debian"},"content":{"rendered":"

I’m running Selfoss RSS reader<\/a> and loving it!<\/p>\n

One thing I don’t love is that it logs me out frequently (BTW, I’m running Apache php-fpm on Debian Jessie). But I think I found a solution. Try adding this to a file called .user.ini in the document root of Selfoss:<\/p>\n

php_value session.cookie_lifetime  604800\r\nphp_value session.cache_limiter    private_no_expire  \r\nphp_value session.cache_expire     604800<\/pre>\n

The 604800 means one week. If you’re running mod_php rather than FPM, you can add these lines to your .htaccess file.<\/p>\n

UPDATE:<\/strong><\/em> The format for .user.ini is not the same used in .htaccess. The .user.ini version looks like this:<\/p>\n

session.cookie_lifetime  = 604800\r\nsession.cache_limiter    = public\r\nsession.cache_expire     = 604800<\/pre>\n

Use whatever cache_limiter()<\/a> setting suits your needs best.<\/p>\n","protected":false},"excerpt":{"rendered":"

I’m running Selfoss RSS reader and loving it! One thing I don’t love is that it logs me out frequently (BTW, I’m running Apache php-fpm on Debian Jessie). But I think I found a solution. Try adding this to a file called .user.ini in the document root of Selfoss: php_value session.cookie_lifetime 604800 php_value session.cache_limiter private_no_expire […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[16,39,40,26],"_links":{"self":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/887"}],"collection":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/comments?post=887"}],"version-history":[{"count":4,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/887\/revisions"}],"predecessor-version":[{"id":894,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/887\/revisions\/894"}],"wp:attachment":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media?parent=887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/categories?post=887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/tags?post=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}