summaryrefslogtreecommitdiff
path: root/inc/auth
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-10-03 14:15:46 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-10-03 14:15:46 +0200
commite71ce681bdae620477f46591279412a0143b6b0e (patch)
treeee04b780f596711f94ad6ae89cc6437e214a8e90 /inc/auth
parent2d18445dc9ce9189da11f62ae9602e1f17ee64b6 (diff)
downloadrpg-e71ce681bdae620477f46591279412a0143b6b0e.tar.gz
rpg-e71ce681bdae620477f46591279412a0143b6b0e.tar.bz2
use DOKU_URL as key for sessions and auth cookie #896 #581 #884
This patch changes the DOKU_COOKIE define to be based on the DOKU_URL define. DOKU_COOKIE is now used as session key as well, making sessions no longer dependend on the title option. This should fix problems with multiple wikis on the same host (using the same title) and wikis accessed through different URLs. darcs-hash:20061003121546-7ad00-aea4c256b7752815ed422ce74a659152a601d267.gz
Diffstat (limited to 'inc/auth')
-rw-r--r--inc/auth/basic.class.php6
-rw-r--r--inc/auth/punbb.class.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/inc/auth/basic.class.php b/inc/auth/basic.class.php
index faffa4cea..79fb04a1c 100644
--- a/inc/auth/basic.class.php
+++ b/inc/auth/basic.class.php
@@ -147,9 +147,9 @@ class auth_basic {
# $USERINFO['mail'] = 'FIXME';
# $USERINFO['grps'] = array('FIXME');
# $_SERVER['REMOTE_USER'] = $user;
-# $_SESSION[$conf['title']]['auth']['user'] = $user;
-# $_SESSION[$conf['title']]['auth']['pass'] = $pass;
-# $_SESSION[$conf['title']]['auth']['info'] = $USERINFO;
+# $_SESSION[DOKU_COOKIE]['auth']['user'] = $user;
+# $_SESSION[DOKU_COOKIE]['auth']['pass'] = $pass;
+# $_SESSION[DOKU_COOKIE]['auth']['info'] = $USERINFO;
# return true;
}
diff --git a/inc/auth/punbb.class.php b/inc/auth/punbb.class.php
index fb9b905ff..7cef0d733 100644
--- a/inc/auth/punbb.class.php
+++ b/inc/auth/punbb.class.php
@@ -141,8 +141,8 @@ class auth_punbb extends auth_mysql {
$USERINFO['grps'] = array($pun_user['g_title']);
$_SERVER['REMOTE_USER'] = $pun_user['username'];
- $_SESSION[$conf['title']]['auth']['user'] = $pun_user['username'];
- $_SESSION[$conf['title']]['auth']['info'] = $USERINFO;
+ $_SESSION[DOKU_COOKIE]['auth']['user'] = $pun_user['username'];
+ $_SESSION[DOKU_COOKIE]['auth']['info'] = $USERINFO;
return true;
}