CSS Flask Basics Character Builder Flash Messages

Luis S
Luis S
3,027 Points

Regarding app.secret, i didn't get why you need it, is it used by flash internally?

Is there a way to link certain messages to certain actions? What is the use of secret? It seems to me that you would be able to set-up messages for different events by creating a class called messages: messages.bgchange() messages.shirtchange()

etc. so why would you need the secret variable? Can this be handled by the use of sessions instead of cookies?