# Cookies

Enable your TaskBot to access your browser cookie session, so that it doesn't have to log in every time it runs in an incognito session.

{% hint style="warning" %}
If you ever log out from the website that you copied cookies from, this will invalidate the cookie session. So if you log out, be sure to re-copy and re-paste your cookies again!
{% endhint %}

{% hint style="warning" %}
Your cookies may expire over time. Simply copy them again and paste to your TaskBot workflow, as described below.
{% endhint %}

### Step 1: Copy Cookies

Download this free-of-charge plugin Cookie-Editor: <https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm>.

Click on the puzzle sign on your Chrome bar and pin it, like shown below.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FxgzGGFTq2sTlR2xiQq8n%2FScreenshot%202024-11-12%20at%2013.05.14.png?alt=media&#x26;token=31f23915-9a58-4b40-9fef-de96b88a3f48" alt=""><figcaption></figcaption></figure>

Go to the website for which you need to get cookies. For example, if you are building a TaskBot for LinkedIn, open linkedin.com, make sure you are logged in, click on the Cookie-Editor plugin and click on Export button - marked red in the screenshot below. Then select *Export as JSON* option. That action will copy your cookies to your clipboard.&#x20;

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FF7gRWTbVVGZhHgDBOVFY%2FScreenshot%202024-11-12%20at%2013.10.06.png?alt=media&#x26;token=5ccc1a40-c134-4b70-b4e9-987bf3492228" alt=""><figcaption></figcaption></figure>

### Step 2: Paste Cookies to ZeroWork

Now return to your TaskBot builder page, open *TaskBot Settings* and paste your cookies in the cookies field. Now you are good to go!

<div align="center" data-full-width="false"><figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fl94SqpXjmeHvVeimQ4hp%2FScreenshot%202023-11-20%20at%2016.09.38.png?alt=media&#x26;token=13058828-064f-4ecf-862a-811c2da2219c" alt=""><figcaption></figcaption></figure></div>

### Troubleshooting: TaskBot Cannot Log in with Cookies

In some rare cases, some websites do not accept cookies to be logged in with.

In such cases, you have two options:&#x20;

* Use building blocks to build a login flow. For example, add the building block [insert-text-or-data](https://docs.zerowork.io/using-zerowork/using-building-blocks/insert-text-or-data "mention") with your username and password and then add the building block [click-web-element](https://docs.zerowork.io/using-zerowork/using-building-blocks/click-web-element "mention") to click on the button "Log in". You can encrypt your password, as described here: [#encrypt-content](https://docs.zerowork.io/using-building-blocks/insert-text-or-data#encrypt-content "mention").&#x20;
* Use [Broken link](https://docs.zerowork.io/using-zerowork/general-run-schedule-share-webhooks/broken-reference "mention") or [Broken link](https://docs.zerowork.io/using-zerowork/general-run-schedule-share-webhooks/broken-reference "mention") run modes.

### Video Tutorial

Start watching from 2:55 mark to see how to use cookies.

{% embed url="<https://youtu.be/zm11yRzEUgk?si=1wGLuLPm-cEd-1oA>" %}
