Projekt

Allgemein

Profil

GX-Bug #59348 » SessionSavePathFix.patch

Till Tepelmann, 01.10.2018 19:53

Unterschiede anzeigen:

src/admin/includes/functions/sessions.php (date 1538414130000)
27 27
@ini_set('session.gc_probability', defined('SESSION_GC_PROBABILITY') ? (int)SESSION_GC_PROBABILITY : 100);
28 28
@ini_set('session.gc_divisor', defined('SESSION_GC_DIVISOR') ? (int)SESSION_GC_DIVISOR : 1000);
29 29

  
30
if(defined('SESSION_SAVE_HANDLER'))
30
if(defined('SESSION_SAVE_HANDLER') && defined('SESSION_SAVE_PATH'))
31 31
{
32
    @ini_set('session.save_handler', SESSION_SAVE_HANDLER);
33
}
34
if(defined('SESSION_SAVE_PATH'))
35
{
36
    session_save_path(SESSION_SAVE_PATH);
32
	@ini_set('session.save_handler', SESSION_SAVE_HANDLER);
33
	session_save_path(SESSION_SAVE_PATH);
37 34
}
35
else
36
{
37
	@ini_set('session.save_handler', 'files');
38
	session_save_path(DIR_FS_CATALOG . 'cache/sessions/');
39
}
38 40

  
39 41
session_name('XTCsid');
40 42
/*
src/includes/functions/sessions.php (date 1538414052000)
22 22
@ini_set('session.gc_probability', defined('SESSION_GC_PROBABILITY') ? (int)SESSION_GC_PROBABILITY : 100);
23 23
@ini_set('session.gc_divisor', defined('SESSION_GC_DIVISOR') ? (int)SESSION_GC_DIVISOR : 1000);
24 24

  
25
if(defined('SESSION_SAVE_HANDLER'))
25
if(defined('SESSION_SAVE_HANDLER') && defined('SESSION_SAVE_PATH'))
26 26
{
27 27
    @ini_set('session.save_handler', SESSION_SAVE_HANDLER);
28
}
29
if(defined('SESSION_SAVE_PATH'))
30
{
31 28
    session_save_path(SESSION_SAVE_PATH);
32 29
}
30
else
31
{
32
	@ini_set('session.save_handler', 'files');
33
	session_save_path(DIR_FS_CATALOG . 'cache/sessions/');
34
}
33 35

  
34 36
session_name('XTCsid');
35 37

  
    (1-1/1)