PageSourceSearch

https://manninglive.com/js_system/misc/cookies.js

js manninglive.com collected 2026-10-01 12:08:53 UTC 1,074 bytes, 44 lines download raw bytes

1function setCookie(name, value, expires, path, domain, secure )
2{
3// set time, it's in milliseconds
4var today = new Date();
5today.setTime( today.getTime() );
6if ( expires )
7{
8expires = expires * 1000 * 60 * 60 * 24;
9}
10var expires_date = new Date( today.getTime() + (expires) );
11
12document.cookie = name + "=" +escape( value ) +
13( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
14( ( path ) ? ";path=" + path : "" ) +
15( ( domain ) ? ";domain=" + domain : "" ) +
16( ( secure ) ? ";secure" : "" );
17}
18
19/*
20
21function setCookie(c_name,value,exdays)
22{
23var exdate=new Date();
24exdate.setDate(exdate.getDate() + exdays);
25var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
26document.cookie=c_name + "=" + c_value;
27}
28
29*/
30
31function getCookie(c_name)
32{
33var i,x,y,ARRcookies=document.cookie.split(";");
34for (i=0;i<ARRcookies.length;i++)
35{
36  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
37  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
38  x=x.replace(/^\s+|\s+$/g,"");
39  if (x==c_name)
40    {
41    return unescape(y);
42    }
43  }
44}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.