Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookies and subdomains #6

Open
andrewtf opened this issue Feb 17, 2016 · 1 comment
Open

Cookies and subdomains #6

andrewtf opened this issue Feb 17, 2016 · 1 comment

Comments

@andrewtf
Copy link

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.

@brianhewitt
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants