head_extras.jspf

 

<%-- Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2001, 2004, 2006 - All Rights reserved.

	NOTE: See notes in Default.jsp for information regarding editing theme JSP fragments.	


	This file may be overwritten in themes derived from the Portal theme to add extra elements
	to the head section of the HTML document. 
--%>

<script type="text/javascript">
// Delete the cookie that stores the client-side state from themes in CSA mode
(function(){
	if(typeof dojo != "undefined" && dojo.cookie) {
		try {
			var sessionID = dojo.cookie( "JSESSIONID" );
			var token = dojo.cookie( "LtpaToken" );
			if(token && token.length > 20) token = token.substr(0, 20);
			var key = window.location.host + sessionID + token;
			//Encode this as if it will be in a url because certain characters are unsafe.
			key = encodeURIComponent( key );
			// Delete the cookie
			var exp = dojo.isFF ? "Thu, 01-Jan-70 00:00:01 GMT" : -1;
			dojo.cookie( key, null, {expires: exp, path: "/"} );
		}
		catch(e){
			// just a precaution so we don't break the overall theme in case something odd happens
		}
	}
})();
</script>