vue-resource icon indicating copy to clipboard operation
vue-resource copied to clipboard

vue-resource cause the creation of new session

Open umtkas opened this issue 7 years ago • 6 comments

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?

umtkas avatar Aug 21 '17 08:08 umtkas

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

samsong8610 avatar Sep 25 '17 05:09 samsong8610

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

umtkas avatar Sep 30 '17 14:09 umtkas

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

dancinglone avatar Dec 15 '17 08:12 dancinglone

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

S1k1gam1 avatar Jan 02 '18 15:01 S1k1gam1

i met same problem,dont know how to solve

simaguo avatar Feb 01 '18 04:02 simaguo

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

stigok avatar Jul 21 '19 22:07 stigok