Cookie and header in restAPI

I want to use restapi ‘POST /api/session/’ to get user’s login token and add it in header to use other apis.But I receive a readonly cookie when I use ‘POST /api/session/’.With this cookie,the ‘X-Metabase-Session’ header is useless when I want to switch another user with his cached X-Metabase-Session.

Now the question is:
How can I avoid the cookie returned by ‘POST /api/session/’?
OR
How can ‘X-Metabase-Session’ in request hearder real work when there is a cookie stored another user’s token?