Open andrewtf opened 8 years ago
I realize this is an old question, but I thought I'd chime in here in case anyone is looking at this.
It would be pretty straightforward to strip out the use of a url-specific cookie (and the old cookie script) and just use a unique native javascript localStorage
object, which, like cookies, persists indefinitely (more or less: iOS Safari, for example, might occasionally purge data to free space).
I have the VMS deployed on a Drupal site that's divided into three subdomains. The cookie set by the survey doesn't work across them. I've tried to set a domain in vms.js as per the js cookie documentation , but I don't want to hack that code too much. Any ideas? Worst case scenario is users get to see the survey window up to 3 times, so it's not the end of the world if there's no solution.