You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, sorry for my bad eng. I have a trouble with maxAge property, that work only from direct input, but not from config.
Example:
app.use(cookieSession({name: 'sessiondata',keys: ['key1','key2'],cookie: {maxAge: 1// set the default value}}));
app.get('/login',function(req,res,next){res.cookie('id','lol');//default maxage=1 dont workres.cookie('id2','2222222',{maxAge: 1222});//its workres.send(req.cookies.id+req.cookies.id2);//id = lol id2=undifened (if wait a few seconds and update page)});
The text was updated successfully, but these errors were encountered:
Hello, sorry for my bad eng. I have a trouble with maxAge property, that work only from direct input, but not from config.
Example:
The text was updated successfully, but these errors were encountered: