laminas / laminas-mvc-plugin-flashmessenger

Plugin for creating and exposing flash messages via laminas-mvc controllers
https://docs.laminas.dev/laminas-mvc-plugin-flashmessenger/
BSD 3-Clause "New" or "Revised" License
10 stars 16 forks source link

flashMessenger logs out user when session storage is database and msg contains utf8 emoji #42

Open YuriStruszczynski opened 5 months ago

YuriStruszczynski commented 5 months ago

Bug Report

Q A
laminas-mvc-plugin-flashmessenger 1.10.1
PHP 8+
nginx
session storage database

Summary

Current behavior

FlashMessenger logs out user when session storage is database and msg contains utf8 emoji. Also relevant: localhost with apache gives no problem, production with nginx gives problem

How to reproduce

  1. Login ...
  2. $this->flashMessenger()->addSuccessMessage("xyz 💪");
  3. die("test");
  4. run Action to see "test"
  5. Use Browser history to get back
  6. you're logged out
  7. remove emoji
  8. run action again to see "test"
  9. you're still logged in

Expected behavior

no logout