I have a problem with the cookie I’ve created.
Related to this question, my cookie is now working. The problem is if I changed the user, the same cookie is still being shown. Are there ways to ensure that the particular cookie is for that particular user? Thank you
It seems that your previous code only triggers cookie creation when it’s null
So I suggest you just clear the cookie everytime a user-logout event is triggered.
Or, if you can change users without any user logging out, then trigger
saveCreditCookiefunction everytime you change users. Not sure though how that’s detected in your application.