PHPackages                             mzur/kirby-flash - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mzur/kirby-flash

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

mzur/kirby-flash
================

Stores data in the session for the next request. Data is removed after the next page load.

v2.2.0(3y ago)272.7k↑13.8%11MITPHP

Since Jan 26Pushed 3y ago2 watchersCompare

[ Source](https://github.com/mzur/kirby-flash)[ Packagist](https://packagist.org/packages/mzur/kirby-flash)[ RSS](/packages/mzur-kirby-flash/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (10)Used By (1)

Kirby Flash
===========

[](#kirby-flash)

[![Tests](https://github.com/mzur/kirby-flash/actions/workflows/php.yml/badge.svg)](https://github.com/mzur/kirby-flash/actions/workflows/php.yml)

**This is a fork of [jevets\\kirby-flash](https://github.com/jevets/kirby-flash).**

Allows you to "flash" data to the session, which will be available via the session on the next page load, after which the data is removed from the session.

Very useful for:

- Saving submitted form data for form validation, specifically for the [Post/Redirect/Get](https://en.wikipedia.org/wiki/Post/Redirect/Get) design pattern
- Displaying Success or Error messages after a page reload

Quick Example
-------------

[](#quick-example)

```
flash('thanks_message', 'Thank you for contacting us!');
```

Elsewhere...

```
