Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am trying to enter into a webpage and i get this response at random times.
It freezes loading this page content only. If i restart my VS, it looks (sometimes) that it dissapear, but if i try to reach my page multiple times, this will freeze again and only this will load only.
How to bypass it and what it is? My best guess its a cookie.
thank you.

HTML
<html><head><script type="text/javascript"><!--
function leastFactor(n) {
 if (isNaN(n) || !isFinite(n)) return NaN;
 if (typeof phantom !== 'undefined') return 'phantom';
 if (typeof module !== 'undefined' && module.exports) return 'node';
 if (n==0) return 0;
 if (n%1 || n*n<2) return 1;
 if (n%2==0) return 2;
 if (n%3==0) return 3;
 if (n%5==0) return 5;
 var m=Math.sqrt(n);
 for (var i=7;i<=m;i+=30) {
  if (n%i==0)      return i;
  if (n%(i+4)==0)  return i+4;
  if (n%(i+6)==0)  return i+6;
  if (n%(i+10)==0) return i+10;
  if (n%(i+12)==0) return i+12;
  if (n%(i+16)==0) return i+16;
  if (n%(i+22)==0) return i+22;
  if (n%(i+24)==0) return i+24;
 }
 return n;
}
function go() {
 var p=1854637260384; var s=1852294764; var n;
if ((s >> 1) & 1)/* 120886108*
*/p+=/* 120886108*
*/9165259*2;
else 
p-=	309950711*/* 120886108*
*/2;/*
p+= */if ((s >> 12) & 1)
p+= 122647159*/* 120886108*
*/15;else /* 120886108*
*/p-= 152120854*/*
p+= */13;/*
*13;
*/if ((s >> 6) & 1) p+=	19769060*/*
p+= */9;
else /*
*13;
*/p-=/*
p+= */79929262*	7;if ((s >> 2) & 1)/*
else p-=
*/p+=/*
p+= */325689505*/*
p+= */5;/*
else p-=
*/else  p-=	190949372*/*
p+= */3;
if ((s >> 10) & 1)	p+=/*
else p-=
*/26151899*/*
else p-=
*/13; else /* 120886108*
*/p-=124960651*/*
else p-=
*/11;	 p-=173181703;
 n=leastFactor(p);
{ document.cookie="RNKEY="+n+"*"+p/n+":"+s+":3555409896:1";
  document.location.reload(true); }
}
//--></script></head>
<body onload="go()">
Loading ...
</body>
</html>


What I have tried:

What have you tried?
Posted
Comments
Richard MacCutchan 31-Oct-18 5:14am    
I do not see any cookie references in the above code. Why do you believe that is the problem?
_Q12_ 31-Oct-18 20:20pm    
I am aware is a wrong supposition, but i really don't have too much knowledge about this stuff. That is why i come to this wonderful website with its wonderful programmers that may help me in my development (hopefully).
I recently noticed, that when I press my button to 'refresh' the website link in my winapp, for a while all goes with no problem. I Close my app, refresh the same page from my FF browser, re-open my app, the link doesn't work anymore whatever how many times i press my button. I must wait like 5 minutes, sometime 10, sometimes 30min even, until i can access the page through my app. This are my observations.
ALSO - very important too, After a big 'freeze' in my app, when i refresh the page through my FF browser, for 1 second is appearing a white page with only this text in it : "Loading..." and i immediately recognize that is the page i get from debugging. But in reality, in my FF browser, it takes less than 1 second to load, i can barely see that page loading and then the real page is back.

Why my application is stuck with this page? Thoughts and experiments are very welcome. I tested all the codes for web page loading i could find on internet. I even try htmlAgilitypack (for the first time!) but the results are all the same through each method of loading i use. So it's not my VS. That is why i came to the conclusion it must be some sort of 'bad' cookie? Something that is stored in windows folders somewhere, or in my FF folder? I had this problem all the time in decurs of years i poke at app web page reading (for this website in particular).
Thank you very much mister Richard.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900