Forum: NGINX Ignore (or clear) too long cookie ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cab66b0caecae0068ab03d1f36b87273?d=identicon&s=25 Olivier B. (Guest)
on 2009-05-22 17:36
(Received via mailing list)
Hello,

is there a way witch NginX to ignore or delete a too long cookie ?
(which produce a return 400 Bad Request)

Thanks,
Olivier
2c6f80fff253635f12c249ef4f116796?d=identicon&s=25 Jim Ohlstein (Guest)
on 2009-05-22 17:46
(Received via mailing list)
1f63dadb857637a35df3fa553f67a5a7?d=identicon&s=25 Josh Turmel (@JT) (Guest)
on 2009-05-22 17:52
(Received via mailing list)
Olivier B. <nginx.list@...> writes:

>
> Hello,
>
> is there a way witch NginX to ignore or delete a too long cookie ?
> (which produce a return 400 Bad Request)
>
> Thanks,
> Olivier
>
>

Adjust your client_header_buffer_size.

Josh
Cab66b0caecae0068ab03d1f36b87273?d=identicon&s=25 Olivier B. (Guest)
on 2009-05-22 18:06
(Received via mailing list)
Thanks, but this only allow to increase the limit... is there another
way ?

I would like to avoid this sort of "cookie injection" :
http://sirdarckcat.blogspot.com/2009/04/how-to-use...
So I can't really know the size of the cookie.

Olivier

Jim Ohlstein a écrit :
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-05-22 19:09
(Received via mailing list)
On Fri, May 22, 2009 at 03:44:44PM +0000, Josh Turmel (@JT) wrote:

> >
> >
>
> Adjust your client_header_buffer_size.

It's better to increase large_client_header_buffers.
They were specially created for large headers.
This topic is locked and can not be replied to.