V
V
Vladimir Zharinov2016-11-19 17:49:20
PHP
Vladimir Zharinov, 2016-11-19 17:49:20

session.save_path. Is the garbage collector running?

Overridden the sessions storage folder with the following code:

ini_set('session.gc_maxlifetime', 65535);
ini_set('session.cookie_lifetime', 65535);
ini_set('session.save_path', realpath('').'/sessions');

It seems that now sessions are stored for too long. I'm afraid that more than 1.5k files in one folder can slow down the server. What can be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-11-19
@zharinov_v

The number of files in a folder does not affect the speed in any way.
Of course, if this folder does not copy / get a listing / and all that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question