From 8746e7272c61513b3e10c595fe9526ccf02c2c4a Mon Sep 17 00:00:00 2001 From: andi Date: Wed, 8 Jun 2005 23:35:14 +0200 Subject: session_write_close added #364 I just learned that PHP does lock it's session objects. This is realy bad if you have multiple images in a page as each one will call fetch.php which locks the session, so everything can only be loaded sequentially. The fix for this is to close the session after using it which is after doing the auth and the breadcrumbs. I added the needed calls everywhere. darcs-hash:20050608213514-9977f-f2dfc467ebbd06406e10e33a386fa1db6cb32dba.gz --- feed.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'feed.php') diff --git a/feed.php b/feed.php index 96263c5b8..c241a610f 100644 --- a/feed.php +++ b/feed.php @@ -13,13 +13,16 @@ require_once(DOKU_INC.'inc/feedcreator.class.php'); require_once(DOKU_INC.'inc/auth.php'); - //set auth header for login + //set auth header for login FIXME: is this used anymore??? if($_REQUEST['login'] && !isset($_SERVER['PHP_AUTH_USER'])){ header('WWW-Authenticate: Basic realm="'.$conf['title'].'"'); header('HTTP/1.0 401 Unauthorized'); auth_logoff(); } + //close sesseion + session_write_close(); + $num = $_REQUEST['num']; $type = $_REQUEST['type']; -- cgit v1.2.3