Skip to content
Myr

Document flash message size limit

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Reason: Messages of size 68,493 - 91,326 characters cause flash to fail silently. Session cookies cannot have such large messages.

authored by Prachi Shirish Khadke · committed by Prachi Shirish Khadke · parent 41f3d67 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Issue: pallets/flask#1789

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:docs/patterns/flashing.rst+3 added-1 removed
7 unmodified lines
8application. Flask provides a really simple way to give feedback to a9user with the flashing system. The flashing system basically makes it10possible to record a message at the end of a request and access it next11request and only next request. This is usually combined with a layout12template that does this.12template that does this. Note that browsers and sometimes web servers enforce13a limit on cookie sizes. This means that flashing messages that are too14large for session cookies causes message flashing to fail silently.1516Simple Flashing17---------------18
132 unmodified lines