From: Joe Hunt Date: Thu, 15 Nov 2012 14:18:14 +0000 (+0100) Subject: Fixed session abandoned error in Windows Servers X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=d446bb9c18d1f4ec59eb76162061a24b42465400;p=textcart.git Fixed session abandoned error in Windows Servers --- diff --git a/includes/session.inc b/includes/session.inc index ce56380..ed5f5c0 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -76,7 +76,7 @@ class SessionManager $_SESSION['EXPIRES'] = time() + 10; // Create new session without destroying the old one - session_regenerate_id(); + session_regenerate_id(version_compare(PHP_VERSION, '5.1.0') >= 0 && (substr(strtoupper(PHP_OS),0,3) == "WIN")); // Grab current session ID and close both sessions to allow other scripts to use them $newSession = session_id();