title: Session variables and persisting them to a database
body: <p>So there are a few things I know about this topic but I am having a hard time finding where or what to research for this application. I am developing a web app for c# and asp.net web forms and am saving information in session for each user. </p>
  
  <p>I am just wondering when I should timeout session and any information about persisting session to a database so that it can be accessed later. The variables are being changed in session on a frequesnt basis and I do not want it to impact performance to persist these changes in the database each time.</p>
  
  <p>The goal of this is to have variables saved in session for each customer's information as they preform several transactions and pay at the end. If someone walks away for 10 mins and the session times out, I want a way to get that information back to complete the order. I also do not want this to affect performance.</p>
  
  <p>I may also implement a session timeout that triggers a popup screen that will persist these changes to the database only if the user wishes and not each time something changes.</p>
  
  <p>This is my first time dealing with session or caching in a web app and I would like to know more information or where to look or how you would attack this problem.</p>
  
  <p>Thank you.</p>