# \[Solved\] Cookies increase when open different public link on same browser

**URL:** https://forum.pydio.com/t/solved-cookies-increase-when-open-different-public-link-on-same-browser/5289
**Category:** Pydio Cells
**Tags:** sharing, docker
**Created:** [May 26, 2023, 3:25am UTC](https://forum.pydio.com/t/solved-cookies-increase-when-open-different-public-link-on-same-browser/5289 "2023-05-26T03:25:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![danarn17](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/danarn17/32/2056_2.png) [@danarn17](https://forum.pydio.com/u/danarn17)
#### Post date: [May 26, 2023, 3:25am UTC](https://forum.pydio.com/t/solved-cookies-increase-when-open-different-public-link-on-same-browser/5289/1 "2023-05-26T03:25:38Z")

</div>

Hello, there. I have problem with too large size of cookies on my Pydio Cells.

### Describe your issue in detail

I have created some folder with many file and folder inside its and share them all with public link. But, some non-registered user (they only access trough my public links) reported that they stuck with loading animation after open around 3 or 4 tabs with **different link** on **same browser**. After I figured it out, it was because error when the website send request to make a session (maybe, because the url that i find out was https://{my-url}/a/frontend/session) and it was return :

> 400 Bad Request  
> Your browser sent a request that this server could not understand.  
> Size of a request header field exceeds server limit.

This problem solved after I delete my cookies, but I know it is not right to force user to clear their cookies. Can you guys help me solve this problem from server-side? I feel the problem was on Pydio Cells or on my Apache configuration

### What version of Cells are you using?

Pydio Cells Home Edition 4.1.4 on docker container

### What is the server OS? Database name/version? Browser name or mobile device description (if issue appears client-side)?

Browser : Edge, Chrome, Firefox  
OS : Windows

### What steps have you taken to resolve this issue already?

1. Change Apache configuration by add new line

> LimitRequestFieldSize 200000

1. Upgrade the Pydio Cells
2. Check the request from browser  
I realize the Cookies increase when I’m opening new link on the same browser. Maybe this is the problem, but I want to solved this from the server-side.

Thanks.

---

<div class="post-metadata">

### Author: ![danarn17](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/danarn17/32/2056_2.png) [@danarn17](https://forum.pydio.com/u/danarn17)
#### Post date: [May 30, 2023, 3:37am UTC](https://forum.pydio.com/t/solved-cookies-increase-when-open-different-public-link-on-same-browser/5289/2 "2023-05-30T03:37:42Z")

</div>

I still stuck at this problem lol

---

<div class="post-metadata">

### Author: ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)
#### Post date: [June 1, 2023, 8:42am UTC](https://forum.pydio.com/t/solved-cookies-increase-when-open-different-public-link-on-same-browser/5289/3 "2023-06-01T08:42:52Z")

</div>

Hello,

Because the size of cookie is too big, and when you open many public links in a web browser, the header size sometimes is bigger the Header limit defined by web server.

You can execute following command to reduce the size of cookie of a public link

```auto
# with "pydio" account
./cells admin config db set pydio.rest.frontend 

```

---

<div class="post-metadata">

### Author: ![danarn17](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/danarn17/32/2056_2.png) [@danarn17](https://forum.pydio.com/u/danarn17)
#### Post date: [June 1, 2023, 2:18pm UTC](https://forum.pydio.com/t/solved-cookies-increase-when-open-different-public-link-on-same-browser/5289/5 "2023-06-01T14:18:08Z")

</div>

what does that command do? i have try execute that inside terminal on my container, but return

```auto
panic: interface conversion: interface {} is nil, not string

```

but, my problem was solved after execute that command. still I want to know what exactly that do, because i try to find on the documentation but got nothing explanation

---

<div class="post-metadata">

### Author: ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)
#### Post date: [June 2, 2023, 8:29am UTC](https://forum.pydio.com/t/solved-cookies-increase-when-open-different-public-link-on-same-browser/5289/6 "2023-06-02T08:29:18Z")

</div>

Hi,

> [@danarn17](#):
>
> what does that command do?

Before running this command, the share links use “jwt approach” that the cookie value contains the session information. That’s why its size is big. In the case of Pydio Cells, it’s encrypted session data, not jwt.

When you run the command `./cells admin config db set pydio.rest.frontend`, you switch to use “session cookie”. The cookie size is just the size of ID (no content).

For further information, please visit:

> **[Difference between Session Cookies vs. JWT (JSON Web Tokens), for session...](https://medium.com/@prashantramnyc/difference-between-session-cookies-vs-jwt-json-web-tokens-for-session-management-4be67d2f066e)**
>
> “Http” is a “stateless” protocol, in that every http call made to a server is like a fresh call, with no memory or “state” of the previous…

For more information about cells’ commands:  
[https://pydio.com/en/docs/developer-guide/command-line-reference](https://pydio.com/en/docs/developer-guide/command-line-reference)

---

<div class="post-metadata">

### Author: ![danarn17](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/danarn17/32/2056_2.png) [@danarn17](https://forum.pydio.com/u/danarn17)
#### Post date: [June 3, 2023, 3:49am UTC](https://forum.pydio.com/t/solved-cookies-increase-when-open-different-public-link-on-same-browser/5289/7 "2023-06-03T03:49:03Z")

</div>

I’m really grateful for the detailed explanation you provided. It has made a significant difference in my understanding of this issue. Thank you for your valuable help!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/6/61f19fa52ec15fd4250db51aea351adba0e831fd.png) [@system](https://forum.pydio.com/u/system)
#### Post date: [June 14, 2023, 9:49am UTC](https://forum.pydio.com/t/solved-cookies-increase-when-open-different-public-link-on-same-browser/5289/8 "2023-06-14T09:49:51Z")

</div>

This topic was automatically closed 11 days after the last reply. New replies are no longer allowed.
