View | Details | Raw Unified
Collapse All | Expand All

(-)session.php (-2 / +2 lines)
 Lines 231-237    Link Here 
231
    // touch command don't works under windows for directory.
231
    // touch command don't works under windows for directory.
232
    // since it is only needed for unix (for now) I'll test
232
    // since it is only needed for unix (for now) I'll test
233
    // the platform and bypass this call is windows platform.
233
    // the platform and bypass this call is windows platform.
234
    if ( PHP_OS == "WINNT" || PHP_OS == "WIN32" || $GLOBALS['bLockSession'])
234
    if ( !(PHP_OS == "WINNT" || PHP_OS == "WIN32") )
235
        touch($GLOBALS['gszSessSavePath']."/sess_".$szId);
235
        touch($GLOBALS['gszSessSavePath']."/sess_".$szId);
236
236
237
    if ($fp = @fopen($szSessionFile, "w"))
237
    if ($fp = @fopen($szSessionFile, "w"))
 Lines 253-259    Link Here 
253
    {
253
    {
254
      debug_msg("Destroy $szId");
254
      debug_msg("Destroy $szId");
255
    }
255
    }
256
    if ( (PHP_OS == "WINNT" || PHP_OS == "WIN32") )
256
    if ( (PHP_OS == "WINNT" || PHP_OS == "WIN32") || $GLOBALS['bLockSession'] )
257
    {
257
    {
258
        $szLockFile = $GLOBALS['gszSessSavePath']."/sess_".$GLOBALS["gszSessId"]."/lock";
258
        $szLockFile = $GLOBALS['gszSessSavePath']."/sess_".$GLOBALS["gszSessId"]."/lock";
259
259