Thursday, 1 June 2017

Why isn't Safari saving my cookies? But Chrome does?

UPDATE: It's worth mentioning my site is being loaded via an iframe.in my app.js i have this for cookieSession.app.use(cookieParser()); app.use(cookieSession({ secret: "SECRET_SIGNING_KEY", maxAge: 15724800000 })); I looked at Safari's console and in the storage section nothing from my domain is being saved.When i set both, user and token. They both come back undefined in Safari. But in Chrome it's saved fine.Parse.User.logIn(req.body.username, req.body.password).then(function(user) { req.session.user = user; req.session.token = user.getSessionToken(); res.redirect('/dashboard'); }, function(error) { console.log(error) req.session = null; res.render('login'); });

Submitted June 02, 2017 at 01:07AM by farhansyed7911

No comments:

Post a Comment