aboutsummaryrefslogtreecommitdiffstats
path: root/include/user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/user.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/user.inc.php b/include/user.inc.php
index 0ff89c950..69d6af692 100644
--- a/include/user.inc.php
+++ b/include/user.inc.php
@@ -26,7 +26,10 @@ $user['id'] = $conf['guest_id'];
if (isset($_COOKIE[session_name()]))
{
- session_start();
+ if (session_id() == '')
+ {
+ session_start();
+ }
if (isset($_GET['act']) and $_GET['act'] == 'logout')
{ // logout
logout_user();