# http: cookie too large

- **ID:** `go/http-cookie-too-large`
- **Domain:** go
- **Category:** io_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A cookie exceeds the maximum allowed size (4KB), causing the server to reject it.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.21 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   Use server-side storage (e.g., session) and store a small cookie ID.
   ```

## Dead Ends

- **** — HTTP specification does not support cookies larger than 4KB. (90% fail)
- **** — This will trigger the same error. (80% fail)
