Helps: cookie.js, 1.8
NOTE: All of the matching function parameters are of the same type.
The following code can easily be loaded with every page load, and will make it less likely for visitors to need to reconfigure all of their settings again. Simply add it to the global-variables.js file.
SetCookie ( CookieName, CookieValue, CookieExpiresInDays )
Self explanatory except for CookieExpiresInDays, which is the number of days before the cookie expires. 365 is used when GetCookieValueAndSetDaily() is called.
GetCookie ( CookieName )
This function can be used to get a cookie value.
GetCookieValue ( CookieName, CookieDefaultValue )
This will set a cookie to CookieDefaultValue when a cookie does not exist. CookieDefaultValue works as empty space '' or even null. If you don't need CookieDefaultValue, just use GetCookie().
GetCookieValueAndSetDaily ( CookieName, CookieDefaultValue )
This works the same as GetCookieValue(), and it will push the expiry date by another 365 days.