I've added debug prints to breadcrumbs as below.
On my first page I get:
Array ( [start] => start ) Array ( [start] => start )
On the next page I get
Array ( [current_issues] => current_issues ) Array ( [current_issues] => current_issues )
It doesn't seem to be saving the cookie.
The cookie has the following name and value
Name DW11eef83bee5c2cd0b27c07697ff21256
Value Z2VkYnwxfFhzbHpqNDc3eVE0PQ%3D%3D
The problem is the same in both IE and Firefox, so I guess the problem is with IIS.
Are there any IIS settings that may be causing problems with the Cookie?
----
/**
* This builds the breadcrumb trail and returns it as array
*
* @author Andreas Gohr <
andi@splitbrain.org>
*/
function breadcrumbs(){
// we prepare the breadcrumbs early for quick session closing
static $crumbs = null;
if($crumbs != null) return $crumbs;
global $ID;
global $ACT;
global $conf;
$crumbs = $_SESSION[DOKU_COOKIE]['bc'];
//first visit?
if (!is_array($crumbs)){
$crumbs = array();
}
//we only save on show and existing wiki documents
$file = wikiFN($ID);
if($ACT != 'show' || !@file_exists($file)){
$_SESSION[DOKU_COOKIE]['bc'] = $crumbs;
return $crumbs;
}
// page names
$name = noNSorNS($ID);
if ($conf['useheading']) {
// get page title
$title = p_get_first_heading($ID);
if ($title) {
$name = $title;
}
}
//remove ID from array
if (isset($crumbs[$ID])) {
unset($crumbs[$ID]);
}
//add to array
$crumbs[$ID] = $name;
//reduce size
while(count($crumbs) > $conf['breadcrumbs']){
array_shift($crumbs);
}
//save to session
$_SESSION[DOKU_COOKIE]['bc'] = $crumbs;
print_r( $crumbs );
print_r( $_SESSION[DOKU_COOKIE]['bc'] );
return $crumbs;
}