Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

vue-resource cause the creation of new session #644

Open
umtkas opened this issue Aug 21, 2017 · 6 comments
Open

vue-resource cause the creation of new session #644

umtkas opened this issue Aug 21, 2017 · 6 comments

Comments

@umtkas
Copy link

umtkas commented Aug 21, 2017

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
Copy link

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

@umtkas
Copy link
Author

umtkas commented Sep 30, 2017

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

@dancinglone
Copy link

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

@S1k1gam1
Copy link

S1k1gam1 commented Jan 2, 2018

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
Copy link

simaguo commented Feb 1, 2018

i met same problem,dont know how to solve

@stigok
Copy link

stigok commented Jul 21, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants