Bug 73933 - Javascript check for cookies fails
Summary: Javascript check for cookies fails
Status: RESOLVED DUPLICATE of bug 72941
Alias: None
Product: konqueror
Classification: Applications
Component: kcookiejar (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-01 01:38 UTC by Scott Jubenville
Modified: 2004-02-01 10:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***