Flash messages through cookies

I’m asking this in advance before I attempt this tomorrow

Has anyone implemented “flash messages” (a.k.a. notifications) though cookies?

Like, imagine a user registration form: after you click “Register” and it’s a success, you set a message in a cookie and redirect to the index page. In the index page, there’s a conditional region that shows the message in the cookie ("Account registered, you can now login ") if present.

Has anyone done this? I never dabbled with cookies before, if someone has pointers I appreciate them

P.S: This last sentence was confusing to write in proper English. If the grammar is incorrect, please do tell me!

Community Page
Last updated: