Конструктор и Генератор HTTP-куки
Гид
Конструктор и Генератор HTTP-куки
Build correct HTTP Set-Cookie headers with a visual configurator. Set name, value, domain, path, expiration, SameSite, Secure, HttpOnly, and other attributes, then get the generated Set-Cookie header, document.cookie string, and server framework code snippets. Includes a cookie parser to reverse-engineer existing Set-Cookie strings and preset configurations for common cookie types.
Как использовать
Enter the cookie name and value, then configure optional attributes: Domain, Path, Max-Age, Expires, SameSite (None/Lax/Strict), Secure, HttpOnly, and Partitioned. The Set-Cookie header and document.cookie string update instantly. Use preset buttons for common patterns (session cookie, persistent cookie, CSRF token, etc.). Copy the generated header or server code snippets for Express.js, PHP, Flask, or Go. To parse an existing cookie, paste a Set-Cookie string and click Parse to populate all fields.
Функции
- Visual Cookie Builder — Configure all Set-Cookie attributes through form controls: Name, Value, Domain, Path, Max-Age, Expires, SameSite, Secure, HttpOnly, Partitioned (CHIPS).
- Set-Cookie Header Output — Correctly formatted Set-Cookie header string following RFC 6265. Updates in real time as you configure.
- document.cookie Output — Client-side JavaScript equivalent for setting cookies. Shows warning when HttpOnly is enabled (can’t be set via JS).
- 4 Server Framework Snippets — Copy-ready code for Express.js (res.cookie), PHP (setcookie), Flask (response.set_cookie), and Go (http.SetCookie). Each dynamically generated from your configuration.
- Cookie Parser — Paste an existing Set-Cookie header string and parse it back into individual fields. Great for debugging or modifying existing cookies.
- 5 Preset Configurations — One-click presets: Session Cookie, Persistent Cookie (30 days), Secure API Token, CSRF Token, Third-Party Cookie (CHIPS). Each fills the form with best-practice settings.
- Валидация в реальном времени — Color-coded warnings: SameSite=None requires Secure, HttpOnly can’t be set via document.cookie, invalid name characters, Max-Age vs Expires conflict.
- Cookie Reference — Collapsible reference explaining each attribute, size limits (4KB per cookie), and SameSite behavior with practical examples.
Cookie Attributes
SameSite: Controls cross-site cookie behavior. Lax (default) sends cookies on top-level navigations. Strict blocks all cross-site cookie sending. None allows cross-site but requires Secure flag.
Secure: Cookie only sent over HTTPS connections. Required when SameSite=None.
HttpOnly: Cookie cannot be accessed via JavaScript (document.cookie). Protects against XSS attacks.
Max-Age: Cookie lifetime in seconds from when it’s set. Takes precedence over Expires.
Expires: Absolute date/time when the cookie expires. Use Max-Age for relative expiration.
Partitioned (CHIPS): Newer attribute for partitioned third-party cookies. Each top-level site gets its own cookie jar.
What is a Set-Cookie header?
What is the difference between SameSite Lax, Strict, and None?
Should I use Max-Age or Expires?
Why can’t HttpOnly cookies be set with document.cookie?
Установите наши расширения
Добавьте инструменты ввода-вывода в свой любимый браузер для мгновенного доступа и более быстрого поиска
恵 Табло результатов прибыло!
Табло результатов — это интересный способ следить за вашими играми, все данные хранятся в вашем браузере. Скоро появятся новые функции!
Подписаться на новости
все Новые поступления
всеОбновлять: Наш последний инструмент был добавлен 8 апр. 2026 г.
