--- rpms/e-smith-php/sme10/e-smith-php-2.6.0-add_session_folder.patch 2016/06/23 04:39:25 1.1 +++ rpms/e-smith-php/sme10/e-smith-php-2.6.0-add_session_folder.patch 2016/06/23 14:56:11 1.2 @@ -2,13 +2,13 @@ diff -Nur e-smith-php-2.6.0.old/root/etc --- e-smith-php-2.6.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays 2016-06-23 00:24:49.131000000 -0400 +++ e-smith-php-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays 2016-06-23 00:31:29.438000000 -0400 @@ -22,6 +22,10 @@ - my $tmpdir = $ibay->prop('PHPTmpDir') || 'enabled'; - $tmpdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/tmp') if $tmpdir eq 'enabled'; - $OUT .= " php_admin_value upload_tmp_dir $tmpdir\n" unless ($tmpdir eq 'disabled' || ! -d $tmpdir); -+ # Set the session folder where php can store its session instead of in global dir -+ my $sessdir = $ibay->prop('PHPSessionDir') || 'enabled'; -+ $sessdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/session') if $sessdir eq 'enabled'; -+ $OUT .= " php_admin_value session.save_path $sessdir\n" unless ($sessdir eq 'disabled' || ! -d $sessdir); + my $tmpdir = $ibay->prop('PHPTmpDir') || 'enabled'; + $tmpdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/tmp') if $tmpdir eq 'enabled'; + $OUT .= " php_admin_value upload_tmp_dir $tmpdir\n" unless ($tmpdir eq 'disabled' || ! -d $tmpdir); ++ # Set the session folder where php can store its session instead of in global dir ++ my $sessdir = $ibay->prop('PHPSessionDir') || 'enabled'; ++ $sessdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/session') if $sessdir eq 'enabled'; ++ $OUT .= " php_admin_value session.save_path $sessdir\n" unless ($sessdir eq 'disabled' || ! -d $sessdir); $OUT .= "\n"; } }