How bas process cookies ?

Support
  • 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!

  • 1 Votes
    74 Posts
    10633 Views
  • Import Cookies

    Moved Support
    0 Votes
    7 Posts
    816 Views
  • 0 Votes
    7 Posts
    1077 Views
  • 0 Votes
    19 Posts
    2040 Views
  • How to set cookies to POST ?

    Support
    0 Votes
    8 Posts
    1645 Views