# Re-use the value of response header asc\_session\_token from login post and change it to asc\_xsrf\_token header

**URL:** <https://community.postman.com/t/re-use-the-value-of-response-header-asc-session-token-from-login-post-and-change-it-to-asc-xsrf-token-header/16904>\
**Category:** Help Hub\
**Tags:** collections, authentication\
**Created:** [October 19, 2020, 5:27pm UTC](https://community.postman.com/t/re-use-the-value-of-response-header-asc-session-token-from-login-post-and-change-it-to-asc-xsrf-token-header/16904 "2020-10-19T17:27:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![knychtell](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@knychtell](https://community.postman.com/u/knychtell)\
**Post date:** [October 19, 2020, 5:27pm UTC](https://community.postman.com/t/re-use-the-value-of-response-header-asc-session-token-from-login-post-and-change-it-to-asc-xsrf-token-header/16904/1 "2020-10-19T17:27:25Z")

</div>

Hello Everyone,  
I am new to Postman and would like to ask for your advise.

I would like to be able to Re-use the value of response header asc\_session\_token from login post and change it to asc\_xsrf\_token header

how it works:  
1.POST METHOD: Login  
body will have the {api keyid, keysecret}

2.RESPONSE HEADER:will generate  
asc\_session\_id=value()

Goal

be able to use the value of asc\_session\_id=value() and rename the request header of the succeding POST methods to asc\_xsrf\_token.

Many thanks in advance  
Knych
