From 60e4f9ffcc5e1fb922ed409cbf116e91058a05cf Mon Sep 17 00:00:00 2001 From: swaggboi Date: Tue, 11 Feb 2025 19:42:34 -0500 Subject: [PATCH] Flash message for new sessions --- lib/PostText.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PostText.pm b/lib/PostText.pm index 5910662..feb8c64 100644 --- a/lib/PostText.pm +++ b/lib/PostText.pm @@ -138,6 +138,7 @@ sub startup($self) { # Shortcut to new session cookie/identity $r->get('/new', sub ($c) { $c->session(expires => 1); + $c->flash(info => 'Session has been reset; have a cookie. 🍪'); $c->redirect_to('threads_list'); })->name('new_session');