To post a new support question, click the Post New Topic button below.
Current Version: 5.2.5 | Sytist Manual | Common Issues | Feature Requests
Please log in or Create an account to post or reply to topics.
You will still receive notifications of replies to topics you are part of even if you do not subscribe to new topic emails.
Php Sessions 1and1
K
Kenneth Leek
26 posts
Wed Dec 04, 19 9:21 AM CST
Hi Guys,
I seem to have an issue with the PHP Sessions temp folder.
The site is running on 1and1 hosting (shared)
running version 3.6.1
I encountered an issue with running out of file space on the server. Too many files.
The allocated limit is 262.144 files.
To resolve the issue, I had to delete the contents of the PHP Sessions folder - problem solved.
My issue is still ongoing though as the PHP Sessions Temp folder keeps mounting up extremely quickly. After just 8 weeks of emptying the folder, I checked today and have 60,000 files in that folder. Seams extremely high very quickly.
The site can be very busy but over 60k files in the temp folder so quickly is causing me some concern.
Is there an issue somewhere with old sessions not being deleted or is there an ongoing issue with something adding far too many sessions?
Hopefully someone could shed some light on this. Issue is resolved for now but I'm sure the cause of the problem is still ongoing so will mount up again quickly.
Thanks guys
I seem to have an issue with the PHP Sessions temp folder.
The site is running on 1and1 hosting (shared)
running version 3.6.1
I encountered an issue with running out of file space on the server. Too many files.
The allocated limit is 262.144 files.
To resolve the issue, I had to delete the contents of the PHP Sessions folder - problem solved.
My issue is still ongoing though as the PHP Sessions Temp folder keeps mounting up extremely quickly. After just 8 weeks of emptying the folder, I checked today and have 60,000 files in that folder. Seams extremely high very quickly.
The site can be very busy but over 60k files in the temp folder so quickly is causing me some concern.
Is there an issue somewhere with old sessions not being deleted or is there an ongoing issue with something adding far too many sessions?
Hopefully someone could shed some light on this. Issue is resolved for now but I'm sure the cause of the problem is still ongoing so will mount up again quickly.
Thanks guys
Edited Wed Dec 04, 19 9:27 AM by Kenneth Leek
Tim - PicturesPro.com
16,990 posts
(admin)
Wed Dec 04, 19 11:26 AM CST
It's the way PHP 7 on some servers is not automatically cleaning up the session files like it did in PHP 5.
In your Sytist admin click Settings in the main menu then underneath the left menu click edit config file.
Remove these 2 lines:
ini_set('session.gc_maxlifetime', 3600);
ini_set('session.save_path', $setup['path']."/sy-phpsessions");
That will make it use the default server session handling and stop that from happening.
In your Sytist admin click Settings in the main menu then underneath the left menu click edit config file.
Remove these 2 lines:
ini_set('session.gc_maxlifetime', 3600);
ini_set('session.save_path', $setup['path']."/sy-phpsessions");
That will make it use the default server session handling and stop that from happening.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
My Email Address: info@picturespro.com
K
Kenneth Leek
26 posts
Wed Dec 04, 19 11:40 AM CST
Thanks for quick reply Tim,
That's me updated the file as instructed. Hopefully this helps other users on similar setup.
Excellent, thank you
That's me updated the file as instructed. Hopefully this helps other users on similar setup.
Excellent, thank you
Please log in or Create an account to post or reply to topics.

Loading more pages