diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-10-03 14:15:46 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-10-03 14:15:46 +0200 |
commit | e71ce681bdae620477f46591279412a0143b6b0e (patch) | |
tree | ee04b780f596711f94ad6ae89cc6437e214a8e90 /inc/init.php | |
parent | 2d18445dc9ce9189da11f62ae9602e1f17ee64b6 (diff) | |
download | rpg-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/init.php')
-rw-r--r-- | inc/init.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/init.php b/inc/init.php index d28e179c3..552f98526 100644 --- a/inc/init.php +++ b/inc/init.php @@ -55,6 +55,9 @@ if(!defined('DOKU_BASE')) define('DOKU_BASE',getBaseURL()); if(!defined('DOKU_URL')) define('DOKU_URL',getBaseURL(true)); + // define cookie and session id + if (!defined('DOKU_COOKIE')) define('DOKU_COOKIE', 'DW'.md5(DOKU_URL)); + // define Plugin dir if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); |