alfhen / vue-cookie

A Vue.js plugin for manipulating cookies
MIT License
822 stars 74 forks source link

get method doesn't works correctly #19

Open giolf opened 7 years ago

giolf commented 7 years ago

If i add a new cookie by the setmethod then with the getmethod i can fetch it.
BUT if i use the getmethod to fetch a cookie that already exist (so i din't use the setmethod). In that case the getmethod doesnt find anything!

pqt commented 7 years ago

Was just about to come here and report the same thing. Is this actually a known issue ?

giolf commented 7 years ago

@AustinPaquette, unfortunately, I don't think so.

stevepop commented 7 years ago

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.

ivolimasilva commented 6 years ago

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.

stevepop commented 6 years ago

@ivolimasilva, Fixed mine as well by setting HttpOnly to false.

AustinFelipe commented 6 years ago

It works for me as well. It should be closed. 😌

OctaneInteractive commented 5 years ago

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?