php's default session.save_path
Hi List, I would like to know your opinion about default location for php session files. In Factory, the situation was inconsistent across SAPIs. For example, mod_php used /var/lib/phpN, while fpm used upstream default /tmp (PrivateTmp in fact). Now we switched to the upstream default everywhere. Do you think it is good move? Petr +1 Arjen de Korte -1 Jan Engelhardt -1 Marcus Rückert See the background: https://bugzilla.suse.com/show_bug.cgi?id=1194414 -- Have a lot of fun!
On Tuesday 2022-02-08 16:13, pgajdos wrote:
Hi List,
I would like to know your opinion about default location for php session files. In Factory, the situation was inconsistent across SAPIs. For example, mod_php used /var/lib/phpN, while fpm used upstream default /tmp (PrivateTmp in fact). Now we switched to the upstream default everywhere. Do you think it is good move?
+1 Arjen de Korte -1 Jan Engelhardt -1 Marcus Rückert
0 I hardly care. There are arguments for both to the point where "no change" over leap 15.X (IOW, stick to /tmp) gets the slight favor.
On Tue, Feb 08, 2022 at 05:33:33PM +0100, Jan Engelhardt wrote:
0 I hardly care. There are arguments for both to the point where "no change" over leap 15.X (IOW, stick to /tmp) gets the slight favor.
Thanks for the clarification, Jan. Yes, I think the current default (which means mistakenly /tmp for fpm and /var/lib/phpN else) would be good to keep for 15x codestreams now. Not sure we will be able to bypass factory first for future version updates in 15x, though. The configuration consistency of individual sapis in Tumbleweed will perhaps be good argument (whatever the default will be). Petr -- Have a lot of fun!
Hi PeTer: /tmp is the default because by default on any unix-like system there is no other known always writable directory, sessions are not supposed to go away after service restart, but they are supposed to be garbage collected by mod_session or a admin/distribution provided script..I think ubuntu/debian have a battle tested one. so that would be a -1 from me. On Tue, Feb 8, 2022 at 12:13 PM pgajdos <pgajdos@suse.cz> wrote:
Hi List,
I would like to know your opinion about default location for php session files. In Factory, the situation was inconsistent across SAPIs. For example, mod_php used /var/lib/phpN, while fpm used upstream default /tmp (PrivateTmp in fact). Now we switched to the upstream default everywhere. Do you think it is good move?
Petr
+1 Arjen de Korte -1 Jan Engelhardt -1 Marcus Rückert See the background: https://bugzilla.suse.com/show_bug.cgi?id=1194414
-- Have a lot of fun!
On Wed, Feb 09, 2022 at 11:06:29AM -0300, Cristian Rodríguez wrote:
/tmp is the default because by default on any unix-like system there is no other known always writable directory, sessions are not supposed to go away after service restart, but they are supposed to be garbage collected by mod_session or a admin/distribution provided script..I think ubuntu/debian have a battle tested one. so that would be a -1 from me.
Yes, these are also Darix's arguments in the original bug. Thank you Christian for your opinion. Petr -- Have a lot of fun!
participants (3)
-
Cristian Rodríguez
-
Jan Engelhardt
-
pgajdos