I’m currently building a web app that requires the user to go through a sequence of “pages” to solicit inputs. I’ve been using sessions to propagate across the “views”. For example, the session variable controlling the content of the page and saving the inputs temporarily into sessions before creating a final object towards the end and write to DB.
What Ive noticed that while it doesn’t really make my code more messy, I feel that this pattern gives me a really insecure feeling about what’s happening and it makes me feel messy inside.
Is there a more “acceptable” way?