Hello,
up to now we also faced a lot of issues with that logout-problem.
Especially the logout for IE 5.5 and the XUL-runner gave us a hard time.
We had to change our logout-page about 10 times now, because some weird browser did not work like all the others - AGAIN...
Here is, what we got so far.
As far as i know, this stuff should work cross-browser, but it's still client-side jscript.
<%-- --------------------------------------------------------------
This is the jscript, that will log you out
-------------------------------------------------------------- --%>
<span id="onloadscript"><!--
function DelSso2Cookie(sName,sPath){
var sso2Domain = location.hostname;
if (location.hostname.indexOf(".")!=0) sso2Domain = location.hostname.substr(location.hostname.indexOf(".")+1);
p="";
if(sPath)p=" path="+sPath+";";
document.cookie = sName+"=0; expires=Fri, 31 Dec 1999 23:59:59GMT;"+p + "domain="+sso2Domain+";";
};
try{
document.execCommand( 'ClearAuthenticationCache' );
} catch (e) {}
DelSso2Cookie("MYSAPSSO2","/");
//--></span>
<%
CALL FUNCTION 'HTTP_DELETE_SSO2_COOKIE'
EXPORTING
server = runtime->server.
%>
<%-- --------------------------------------------------------------
Calling the script directly did not work in all browsers
so we had to use a trick, that may seem kind of weird...
We use the onLoad-Event of a transparent 1x1-pixel-image.
The query-string is a dummy-value, that will be ignored by the
server but it forces the client to reload the picture from the
server instead of reading it from the browser cache.
This dirty hack was necessary, because some browsers will not
fire the onLoad-Event, if the image was read from the browsers
cache.
-------------------------------------------------------------- --%>
<%
DATA: lv_img_url TYPE string.
CONCATENATE '/sap/public/bc/ur/nw5/1x1.gif?'
'dummy=' sy-datum '_' sy-uzeit
INTO lv_img_url.
%>
<img src="<%=lv_img_url%>" onload="eval( document.getElementById('onloadscript').childNodes[0].nodeValue );">
Regards, Jörg