How to display messages to the user after a POST + HTTP redirect

后端 未结 6 1965
执念已碎
执念已碎 2020-12-08 10:52

I’m using the PRG pattern to avoid multiple form submission. It has, however, a serious drawback — you cannot simply echo the confirmation message to the user (

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 11:25

    Pretty much every website that allows users to log in does so by relying on a cookie. It ain't a perfect solution, but it's the best we got.

    Also session handling is one of those things that a web development framework typically takes care of for you.

提交回复
热议问题