Cookies not being created in mobile/safari
up vote
0
down vote
favorite
I have this code creating my cookies, I using this javascript "out of the box" with Wordpress, so it is not aware of this code really:
function createCookie(name,value) {
delete_cookie("stripe_token");
var date = new Date();
date.setTime(date.getTime()+1000);
var expires = "; expires="+date.toGMTString();
document.cookie = name+"="+value+expires+"; path=/; domain=.grahmlux.com";
//document.cookie = name+"="+value+expires+"; path=/";
}
function createUserIDCookie(name,value) {
document.cookie = name+"="+value+"; path=/; domain=.grahmlux.com";
//document.cookie = name+"="+value+"; path=/";
}
The cookies aren't being created, what am I doing wrong? When I'm not on mobile it works.
javascript wordpress cookies mobile safari
add a comment |
up vote
0
down vote
favorite
I have this code creating my cookies, I using this javascript "out of the box" with Wordpress, so it is not aware of this code really:
function createCookie(name,value) {
delete_cookie("stripe_token");
var date = new Date();
date.setTime(date.getTime()+1000);
var expires = "; expires="+date.toGMTString();
document.cookie = name+"="+value+expires+"; path=/; domain=.grahmlux.com";
//document.cookie = name+"="+value+expires+"; path=/";
}
function createUserIDCookie(name,value) {
document.cookie = name+"="+value+"; path=/; domain=.grahmlux.com";
//document.cookie = name+"="+value+"; path=/";
}
The cookies aren't being created, what am I doing wrong? When I'm not on mobile it works.
javascript wordpress cookies mobile safari
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have this code creating my cookies, I using this javascript "out of the box" with Wordpress, so it is not aware of this code really:
function createCookie(name,value) {
delete_cookie("stripe_token");
var date = new Date();
date.setTime(date.getTime()+1000);
var expires = "; expires="+date.toGMTString();
document.cookie = name+"="+value+expires+"; path=/; domain=.grahmlux.com";
//document.cookie = name+"="+value+expires+"; path=/";
}
function createUserIDCookie(name,value) {
document.cookie = name+"="+value+"; path=/; domain=.grahmlux.com";
//document.cookie = name+"="+value+"; path=/";
}
The cookies aren't being created, what am I doing wrong? When I'm not on mobile it works.
javascript wordpress cookies mobile safari
I have this code creating my cookies, I using this javascript "out of the box" with Wordpress, so it is not aware of this code really:
function createCookie(name,value) {
delete_cookie("stripe_token");
var date = new Date();
date.setTime(date.getTime()+1000);
var expires = "; expires="+date.toGMTString();
document.cookie = name+"="+value+expires+"; path=/; domain=.grahmlux.com";
//document.cookie = name+"="+value+expires+"; path=/";
}
function createUserIDCookie(name,value) {
document.cookie = name+"="+value+"; path=/; domain=.grahmlux.com";
//document.cookie = name+"="+value+"; path=/";
}
The cookies aren't being created, what am I doing wrong? When I'm not on mobile it works.
javascript wordpress cookies mobile safari
javascript wordpress cookies mobile safari
edited Nov 11 at 12:49
asked Nov 11 at 1:45
ewizard
1,06122467
1,06122467
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53245145%2fcookies-not-being-created-in-mobile-safari%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown