projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b3d5f7
)
Fixed session abandoned error in Windows Servers
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 15 Nov 2012 14:18:14 +0000
(15:18 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 15 Nov 2012 14:18:14 +0000
(15:18 +0100)
includes/session.inc
patch
|
blob
|
history
diff --git
a/includes/session.inc
b/includes/session.inc
index ce56380a4b06ec4b2bce8527dc7fd41a2dd139a5..ed5f5c0312e1da7773c34f1676a4407c233898bd 100644
(file)
--- 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();