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

Secure Cookie Not being Set #37

Closed
joemaramdocs opened this issue Nov 27, 2019 · 3 comments
Closed

Secure Cookie Not being Set #37

joemaramdocs opened this issue Nov 27, 2019 · 3 comments

Comments

@joemaramdocs
Copy link

Hello i am setting my Cookies like this.on the HTTP/else it is working and setting a cookie while on my HTTPS server its not setting any cookies.

if (window.location.protocol == "https:"){ this.$cookies.set("firstName", "Jer", "1d",window.location.hostname,true); this.$cookies.set("lastName", "Sample", "1d",window.location.hostname,true); this.$cookies.set("companyName", "Sample Comp", "1d",window.location.hostname,true); this.$cookies.set("companyID", "VIP", "1d",window.location.hostname,true); }else{ this.$cookies.set("firstName", "Jer", "1d",window.location.hostname); this.$cookies.set("lastName", "Sample", "1d",window.location.hostname); this.$cookies.set("companyName", "Sample Comp", "1d",window.location.hostname); this.$cookies.set("companyID", "VIP", "1d",window.location.hostname); }

@cmp-cc
Copy link
Owner

cmp-cc commented Nov 27, 2019

$cookies.set(keyName, value[, expireTimes[, path[, domain[, secure]]]])

this.$cookies.set("firstName", "Jer", "1d","/",window.location.hostname,true);

@joemaramdocs
Copy link
Author

its not working :(

@joemaramdocs
Copy link
Author

Working now change "/" to null

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