Bug 73933

Summary: Javascript check for cookies fails
Product: [Applications] konqueror Reporter: Scott Jubenville <scott>
Component: kcookiejarAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Scott Jubenville 2004-02-01 01:38:40 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)
 
OS:          Linux

I updated to the rc1 of kde 3.2 from beta2. Both are ebuild found in the Gentoo portage system.

On accessing www.pcbanking.cibc.com the page uses javascript to check that cookies are enabled, but konqueror fails and is sent to a page saying cookies not enabled. Worked fine under beta2.

The code from the page that does the check is as follows:

<noscript><meta http-equiv="REFRESH" content="0; url=/bvtrx01/script-root-tran/authentication/BrowserSettings.cibc?locale=en_CA"></noscript>
            <script language="JavaScript" type="text/javascript" src="/js/cookies.js"></script>
            
            <script LANGUAGE=JAVASCRIPT>
	    	<!--- hide script from old browsers
	    
	    	if((getSimpleCookie("PCBCookieCheck") != null && getSimpleCookie("PCBCookieCheck") == "1")) {
	    		setSimpleCookie("PCBCookieCheck", "2");
	    		if(! (getSimpleCookie("PCBCookieCheck") != null && getSimpleCookie("PCBCookieCheck") == "2")) {		
	    			document.location="/bvtrx01/script-root-tran/authentication/BrowserSettings.cibc?locale=en_CA";
	    		}
	    	} else {
	    	
	             	setSimpleCookie("PCBCookieCheck", "1");    
	    
	    		if( !(getSimpleCookie("PCBCookieCheck") != null && getSimpleCookie("PCBCookieCheck") == "1")) {
	    			document.location="/bvtrx01/script-root-tran/authentication/BrowserSettings.cibc?locale=en_CA";

	    		}
	    	}

		// make sure there isn't an active session cookie lying around ...
                document.cookie = "pcbToken=; path=/; secure=true; domain=cibc.com; expires=0";

	    	//---->
	    	</script>


	    <script language="JavaScript" type="text/javascript" src="/js/common.js"></script>
		<link rel="stylesheet" href="/css/style.css" type="text/css">
Comment 1 Stephan Kulow 2004-02-01 10:08:34 UTC

*** This bug has been marked as a duplicate of 72941 ***