Why does not the authorization of mobile telephones with the option enabled?

var session = require('express-session');
// Create the server on Express4
app.use(session({
 genid: function(req) {
 return uuid.v4();
},
 saveUninitialized: false,
 resave: true,
 cookie: { 
 name: "SSID",
 maxAge: (60*60*1000*24),
 secure: true // <- PROBLEM
 } , 
 key: "SSID",
 secret: "super secret string",
 proxy: true,
 store: MongoStore
}));


If secure is true, then authorization with mobile telephones is the login and the next request to server it does not see the cookies with the SSID. With the computer everything works.
July 9th 19 at 13:38
1 answer
July 9th 19 at 13:40
1) Check the date on the phone
2) Diverite one go is domain (with www or without www) in case a cookie is placed on one domain and then triggers the redirect, for example www.domain.ru
No redirect domain without www. Tested with Chrome for Android. - Kameron_Hilpert34 commented on July 9th 19 at 13:43
: with date all is good - Kameron_Hilpert34 commented on July 9th 19 at 13:46
Sorry, did not notice that no secure: true everything works. - Daphne_Roob commented on July 9th 19 at 13:49
Then maybe the computer you're on https and http cellphones? - Daphne_Roob commented on July 9th 19 at 13:52

Find more questions by tags Express.jsNode.js