How to import Profile Cookies

Support
  • Hi, i've tried to use Cookies file at profile folder in BAS with Restore Cookies but its only gives JSON string error.

    c6a6d48a-54eb-4759-8fe7-e6187c9172ea-image.png

    The main point is, im just trying to get ready profile Cookies, tried in BAS to SwitchProfile. This option only import profile data, not cookies.

    Any wat to recover profile cookies from Manager to BAS?

  • Just use "Create or switch to regular profile" action
    and point it to created profile folder path.

    Furthermore, you dont need to use manager to create
    profiles and cookies, you can do it all in BAS.

  • @GaG

    Hi, thank you for your reply.

    I've tried too many different things to import ready profile with Create or Switch to regular profile option, its only import profile fingerprint.

    For example, logging account with FPM into any website, cookies saved on FPM side its ok. Trying to use same profile with BAS switching profile and account is just logged off. Something weird is really follows me, is there anything i missed?

    BAS side:84c3170f-43b9-481e-b396-198c4f4076f7-image.png

    importing profile is without any issue, but how could account is logged off after the switch profile,damn god. @Fox

  • Maybe you created profiles with old version of BAS/FPM.
    And now you are trying to import them in new BAS version.

    There was a slight change in folder structure of profiles
    from previous versions of BAS. If that is the case, you can
    install older version of BAS to make it work again - match the
    version wiith which you were creating original profiles.

    Or you can convert old profile file structure to new one.
    It should be easy, you just have to copy some folders to other place
    within existing profile folder structure. Search on forum for more
    details, there should be ready converter somewhere on the forum.

    Maybe @Fox can point you to exact thread on forum,
    if this is the cause of your trouble.

    edit:
    Or you can just simply log in again and new profile with
    cookies should be saved in new format.

  • @araXis said in How to import Profile Cookies:

    @Fox

    By mentioning me in your post, you are in no way speeding up the solution to your problem, while you are distracting me from tasks other than this forum. So the next time you mention me in your message just to get a solution from me - I will purposely ignore your question.

    @araXis said in How to import Profile Cookies:

    importing profile is without any issue, but how could account is logged off after the switch profile,damn god

    Different authorization retention mechanisms may be used on different sites. For example, session cookies, in this case, authorization is reset when the real browser is closed. To avoid this in BAS, try saving cookies to a file before the end of the stream, and the next time you use the profile, load cookies from the file before going to the target site.

  • @GaG said in How to import Profile Cookies:

    Maybe you created profiles with old version of BAS/FPM.
    And now you are trying to import them in new BAS version.

    There was a slight change in folder structure of profiles
    from previous versions of BAS. If that is the case, you can
    install older version of BAS to make it work again - match the
    version wiith which you were creating original profiles.

    Or you can convert old profile file structure to new one.
    It should be easy, you just have to copy some folders to other place
    within existing profile folder structure. Search on forum for more
    details, there should be ready converter somewhere on the forum.

    Maybe @Fox can point you to exact thread on forum,
    if this is the cause of your trouble.

    edit:
    Or you can just simply log in again and new profile with
    cookies should be saved in new format.

    These are new profiles, atleast for 1 week. I think this should be work for me, its never BAS.

    @Fox said in How to import Profile Cookies:

    @araXis said in How to import Profile Cookies:

    @Fox

    By mentioning me in your post, you are in no way speeding up the solution to your problem, while you are distracting me from tasks other than this forum. So the next time you mention me in your message just to get a solution from me - I will purposely ignore your question.

    @araXis said in How to import Profile Cookies:

    importing profile is without any issue, but how could account is logged off after the switch profile,damn god

    Different authorization retention mechanisms may be used on different sites. For example, session cookies, in this case, authorization is reset when the real browser is closed. To avoid this in BAS, try saving cookies to a file before the end of the stream, and the next time you use the profile, load cookies from the file before going to the target site.

    Hi Fox, sorry to mentioned you. I didn't know you'd react like this, everyone has business to do. I did not to speed up your reply process, just feeling alone in this forum <.<

    I really understand these reasonable thing u wrote here.

    Working on gmail platform;

    Saved Cookies(Saved with json and txt also)

    Importing cookies just gives me that:

    af8cdc6c-fe9a-4613-81d1-8f04de791804-image.png

    I cannot also import cookies whats wrong with me i really cant understand, what i missed here.

    Also for this JSON String error after some researching found that way;
    44c0a945-401e-4693-bc28-36f2c13434e0-image.png

    Tried this also but still same, save cookie with base64, before import cookies decoded it, same error occurs.

  • @araXis said in How to import Profile Cookies:

    I really understand these reasonable thing u wrote here.
    Working on gmail platform;

    I checked the authorization of BAS profiles on gmail, the authorization is saved correctly. Which version of BAS are you using?

    @araXis said in How to import Profile Cookies:

    Saved Cookies(Saved with json and txt also)
    Importing cookies just gives me that:

    I cannot also import cookies whats wrong with me i really cant understand, what i missed here.
    Also for this JSON String error after some researching found that way;

    If you use profiles, then authorization in gmail should be saved automatically. To manually save cookies, use the "Save Cookies" and "Write File" actions, and to download cookies, use the "Read File" and "Restore Cookies" actions

    87f84673-7eea-41f7-8992-513338a155fe-изображение.png

    Attach a test script with an example of how you are trying to save and load cookies.

  • @Fox

    Using these version of BAS:
    7ee1aad2-a35c-4fa2-b16d-5f081df5a70e-image.png

    I was trying to restore cookies via file path, damn its my mistake here. Should be fixed restoring cookies now.

    For the logged gmail accounts in FPM, when trying to switch profile into it, account is just logged off it after that in BAS, after that checking account on FPM side, still logged in. Save cookie and restore cookie way is my solution to work it out?

    Extra info:

    The FPM profile I'm trying to use was created on 9/27/2021, did BAS get an update after that date?

    Extra 2:

    Found this version of BAS in my library and tried with it, still account is able to log in.

    a92f079e-70de-4c2f-82e9-86489c764c71-image.png

    There are hundred of gmail accounts to re-login if i cannot solve that, this gonna cost me proxy data and wasting time, i really thankful to you, please help me.

  • @araXis said in How to import Profile Cookies:

    For the logged gmail accounts in FPM, when trying to switch profile into it, account is just logged off it after that in BAS, after that checking account on FPM side, still logged in. Save cookie and restore cookie way is my solution to work it out?

    Which version of FM are you using?

  • @Fox its FingerprintManager2

  • @Fox its FingerprintManager2

    FM and FM2 were created on the 23rd BAS version and their profiles are not compatible with the 24th BAS version.

  • @Fox wow, how i can download 23rd version of bas?

    Edit: YES FOUND ITT!!!

    http://bablosoft.com/distr/BrowserAutomationStudio/23.2.0/BrowserAutomationStudioInstallAllInOne.exe

    i hope this gonna works

  • @Fox TYVM! I take your time, im sorry for that. <3

    Yes, 23rd bas is works with it!

  • This post is deleted!
  • @araXis said in How to import Profile Cookies:

    @Fox

    Using these version of BAS:
    7ee1aad2-a35c-4fa2-b16d-5f081df5a70e-image.png

    I was trying to restore cookies via file path, damn its my mistake here. Should be fixed restoring cookies now.

    For the logged gmail accounts in FPM, when trying to switch profile into it, account is just logged off it after that in BAS, after that checking account on FPM side, still logged in. Save cookie and restore cookie way is my solution to work it out?

    Extra info:

    The FPM profile I'm trying to use was created on 9/27/2021, did BAS get an update after that date?

    Extra 2:

    Found this version of BAS in my library and tried with it, still account is able to log in.

    a92f079e-70de-4c2f-82e9-86489c764c71-image.png

    There are hundred of gmail accounts to re-login if i cannot solve that, this gonna cost me proxy data and wasting time, i really thankful to you, please help me.

    Sorry, i know this topic is old, but i've been looking for this info everywhere. What if i had a cookies.txt file with many cookies and wanted to use a random JSON cookie per thread. Can't figure out how to go about doing that... any ideas?

    For some reason i couldn't quote the correct post, but the image was:

    https://imgur.com/bYA27V3