How bas process cookies ?



  • Just want to know how bas restores cookie ? When we save cookies, they are saved in this format

    format 1

    {"cookies":[{"creation":{"day_of_month":"17","day_of_week":"6","hour":"10","millisecond":"747","minute":"35","month":"3","second":"2","year":"2018"},"domain":".xxxxxxx.com","expires":{"day_of_month":"15","day_of_week":"4","hour":"22","millisecond":"747","minute":"28","month":"11","second":"2","year":"2018"},"has_expires":"1","httponly":"1","last_access":{"day_of_month":"17","day_of_week":"6","hour":"10","millisecond":"747","minute":"35","month":"3","second":"2","year":"2018"},"name":"VISITOR_INFO1_LIVE","path":"/","secure":"0","value":"7vi5mUUlm_Y"} and more ..
    

    But when we restore cookies in http client/browser, cookies are sent in header in format below

    format 2

    Cookie: VISITOR_INFO1_LIVE=7vi5mUUlm_Y AND MORE ..
    

    How can i save cookies in format 2 or how do i convert from format 1 to format 2 ? Does bas has function for this or do i need to convert it using regex ?



  • @andy231

    Just want to know how bas restores cookie ?

    BAS parses json and sends it to browser, it formats cookies and sends it to server.



  • This post is deleted!

Log in to reply