Help ! Meteor Cookies lost themselves after close browser

I use meteor/ostrio:cookies
I don’t whether it really works or not , I can set value and get correctly when refresh browser.
But cookies ain’t there after i close my Chrome and relaunch it .

WebApp.connectHandlers.use(async(req, res, next) => {
    // console.log('connectHandlers',req.url)
    cookies = req.Cookies
    console.log('cookies', cookies)
    if (!IsAppUrl(req.url)) {
        console.log('not IsAppUrl', req.url)

cookies = new Cookies({
    TTL: 31536e3

I think i solved this as i just found that the default cookie package works like a session. After change the initialize , It works

1 Like