Open giolf opened 7 years ago
Was just about to come here and report the same thing. Is this actually a known issue ?
@AustinPaquette, unfortunately, I don't think so.
Hi guys I have experienced the same thing too, and came here to see its been logged as an issue. From the silence from the Author, looks like no solution in sight yet.
Had this same issue when setting cookies from server. After searching I realised the cookies were set with HttpOnly
flag as true
, since it was default. After changing it to false
, I was able to fetch it using the get
method.
Be sure the same isn't happening to you guys.
@ivolimasilva, Fixed mine as well by setting HttpOnly to false.
It works for me as well. It should be closed. 😌
I'm still having the problem, having tried two different packages.
app.use(
session({
name: 'sessionName',
secret: process.env.SESSION_SECRET,
saveUninitialized: true,
resave: false,
httpOnly: false,
cookie: {
secure: false
}
})
)
Any ideas?
If i add a new cookie by the
set
method then with theget
method i can fetch it.BUT if i use the
get
method to fetch a cookie that already exist (so i din't use theset
method). In that case theget
method doesnt find anything!