This visual execution shows how to decide between using sessions and cookies in PHP. First, check if you need to store user data. If yes, check if the data is sensitive. Sensitive data should be stored in sessions because sessions keep data on the server, protecting it from user access. If data is not sensitive and needs to persist after the browser closes, use cookies because they stay on the user's device. The example code stores user data in session if sensitive, otherwise in a cookie for one hour. The execution table traces these decisions step-by-step, showing when and where data is stored. Key moments clarify why sessions protect sensitive data and when cookies are better for persistence. The quiz tests understanding of these decisions based on the visual trace.