I find that if I create a cookie or update an existing one it takes a little while for the information to be updated. That is: if I have one program which stores a value in an existing cookie, and then another program is run automatically which reads the cookie information, it will read the old value.
This is quite annoying because it means I must send the same data that the cookie should contain, to the second program because I cannot rely on it to read the correct information for itself.
If the second program is not run immediately, ie: there is a delay, then the cookie contains the value it should. It seems that it takes a little while for the new value to be stored.
This happens when I test programs both online, and locally. Is this a common problem, or am I doing something wrong?
This is quite annoying because it means I must send the same data that the cookie should contain, to the second program because I cannot rely on it to read the correct information for itself.
If the second program is not run immediately, ie: there is a delay, then the cookie contains the value it should. It seems that it takes a little while for the new value to be stored.
This happens when I test programs both online, and locally. Is this a common problem, or am I doing something wrong?