title: Storing form values from a form in a session in coldfusion
body: <p>I have these form values I'm trying capture in a session:</p>
  
  <pre><code>prop_zip
  prop_st
  address
  city
  fname
  lname
  email
  pri_phone_1
  pri_phone_2
  pri_phone_3
  </code></pre>
  
  <p>Here is my session code:</p>
  
  <pre><code>&lt;cfapplication name="qsErrorVals" clientmanagement="yes" sessionmanagement="yes" sessiontimeout="#createTimeSpan(0,0,360,0)#"&gt;
  &lt;cflock timeout="120" name="#session.sessionID#" type="exclusive"&gt;
      &lt;cfset session.prop_st="#prop_st#"&gt;
      &lt;cfset session.prop_zip="#prop_zip#"&gt;
      &lt;cfset session.address="#address#"&gt;
      &lt;cfset session.fname="#fname#"&gt;
      &lt;cfset session.lname="#lname#"&gt;
      &lt;cfset session.email="#email#"&gt;
      &lt;cfset session.pri_phone_1="#pri_phone_1#"&gt;
      &lt;cfset session.pri_phone_2="#pri_phone_2#"&gt;
      &lt;cfset session.pri_phone_3="#pri_phone_3#"&gt;  
  &lt;/cflock&gt;
  </code></pre>
  
  <p>So far, I can only save two of the variables from the form:</p>
  
  <pre><code>prop_zip
  prop_st
  </code></pre>
  
  <p>The rest I'm having trouble with saving the form values to the session.  I've defined the variables I want to store in the session before creating the session and I've tried using this code:</p>
  
  <pre><code>&lt;cfset session.email="#form.email#"&gt;
  etc...
  </code></pre>
  
  <p>Still I can only save the two variables I mentioned.  What am I doing wrong?</p>