Using the cookie code here: [url removed, login to view]
Have a function in my header where I need to:
a) on page load, I need to set a cookie;
b) if no cookie value exists, check, then add cookie;
c) that refreshes every 30 seconds, BUT
d) on page reload, it doesn't check unless the value in the cookie is 30+ seconds...
The script [url removed, login to view] is linked to my index page.
You can see my initial cookie efforts on the index page with the function get_data() (line 177), where I attempt to $.[url removed, login to view] and $ .cookieBind().
Not working as I need above.
The cookie will be retrieving values from the getNetworkingMessages.php - I want a cookie to be set to follow the user so when they go through the website, it refreshes every 30 seconds, but does not call the server on every page click.