https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-06-07T18:31:14ZRedmineRedmine - Defect #3441: Too many session fileshttps://www.redmine.org/issues/3441?journal_id=96252009-06-07T18:31:14ZEric Davis
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Duplicate</i></li></ul><p>The svn trunk version of Redmine uses cookie sessions so these session files will no longer be created (implemented in <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Set session store to cookie store by default (Closed)" href="https://www.redmine.org/issues/2628">#2628</a>). For now, you can work around this with a crontab entry. I was using the following command for several months:</p>
<pre>
find /tmp/ -name "ruby_sess*" -cmin +600 -exec rm \{} \;
</pre>
<p>That will remove sessions older than 10 hours. You might need to change the find path, all of mine where stored in <code>/tmp/</code> and you mentioned <code>redmine/tmp/sessions/</code>.</p>