pagekit / vue-resource

The HTTP client for Vue.js
MIT License
10.08k stars 1.6k forks source link

vue-resource cause the creation of new session #644

Open umtkas opened 7 years ago

umtkas commented 7 years ago

Hi, when we send da request to our asp.net web api server, it recieves the data successfully and store it in a session, then when we send a second request to get data from session, it creates new session, and returns null data. When we try with postman, it returns the data which is on the session. Is that a bug, or are we missing something?

samsong8610 commented 7 years ago

Does the second request carry a correct cookie header if the server side uses cookie to store session id?

umtkas commented 7 years ago

it is fixed with returning the session id from server and put it in cookie. Project is finished.

dancinglone commented 6 years ago

I've come across the same issue, is it a bug?

S1k1gam1 commented 6 years ago

Have same problem. I used ExpressJs for server side and then tried to save sessions in Vue side, but server recognizes all requests like different requests. Can someone help with this? In own localhost server saves session and I think it is becaues of vue-resource or maybe because of cors in expressJS

simaguo commented 6 years ago

i met same problem,dont know how to solve

stigok commented 5 years ago

Same issue here. Looking for solutions or work-arounds.