title: How can I keep form values without using session?
body: <p>I have one form page with pagination. I want to keep the form values as the user goes to the previous or next page, using pagination. I know that it can be done using the session scope. However, here I don't want to use session scope. Does anyone have any ideas on how to do this without using session? Please let me know.</p>
  
  <p>Here is my form page:</p>
  
  <pre><code>&lt;cfoutput&gt;          
      &lt;form action="#buildUrl(action='survey.save_surveyresults',querystring='surveyId=#rc.surveyid#')#"  method="post"&gt;
          &lt;input type="hidden" name="id" value="0"&gt;
          &lt;input type="hidden" name="surveyid" value="#rc.surveyId#"&gt;
               &lt;div class="container-fluid"&gt;
                  &lt;div class="row"&gt;
  
                  &lt;div class="control-group"&gt;
                       &lt;label class="label-control" for="name"&gt;Name&lt;/label&gt;
                       &lt;div class="controls"&gt;
                            &lt;input type="text" name="name" id="name" required="true" placeholder="enter your name" value="#rc.name#"&gt;
                       &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class="control-group"&gt;
                       &lt;label class="label-control" for="email"&gt;Email&lt;/label&gt;
                       &lt;div class="controls"&gt;
                            &lt;input type="text" name="email" id="email" required="true" placeholder="enter your Email" value="#rc.email#"&gt;
                       &lt;/div&gt;
                  &lt;/div&gt;
  
                             &lt;cfloop query="rc.questions" startrow="#startrow#" maxrows="#perpage#"&gt;
  
                                    &lt;!--- because we have all questions and answers in query we can use switch instead calling template or view
                                      for each question, so its simplify directory structures, questions directory is not necessary now ---&gt;
  
                                    &lt;h3&gt;#CurrentRow#&lt;cfif rc.questions.isrequired&gt;&lt;strong&gt;*&lt;/strong&gt;&lt;/cfif&gt;. #rc.questions.question#&lt;h3&gt; 
                                      &lt;cfswitch expression="#rc.questions.template#"&gt;
                                      &lt;fieldset&gt; 
  
                                          &lt;cfcase value="textbox"&gt;
                                              &lt;input type="text" class="input-xlarge" name="#template#_#questionid#" id="question_#questionid#"&gt;
                                          &lt;/cfcase&gt;
  
  
                                          &lt;cfcase value="multiplechoice"&gt;
                                              &lt;cfloop list="#answer#" delimiters="," index="i"&gt;
                                              &lt;div class="controls"&gt;
                                                  &lt;label&gt;
                                                     &lt;input type="radio" name="#template#_#questionid#"  id="question_#questionid#" value="#answerID#" &gt;
                                                     &lt;span class="lbl"&gt;#i#&lt;/span&gt;
                                                  &lt;/label&gt;
                                              &lt;/div&gt;
                                              &lt;/cfloop&gt;
                                          &lt;/cfcase&gt;
  
                                          &lt;cfcase value="multiplechoiceother"&gt;
                                              &lt;cfloop list="#answer#" delimiters="," index="i"&gt;
                                              &lt;div class="controls"&gt;
                                                  &lt;label&gt;
                                                     &lt;input type="radio" name="#template#_#questionid#"  id="question_#questionid#" value="#answerID#" &gt;
                                                     &lt;span class="lbl"&gt;#i#&lt;/span&gt;
                                                  &lt;/label&gt;
                                              &lt;/div&gt;
                                              &lt;/cfloop&gt;
                                              &lt;div class="control-group"&gt;
                                                     &lt;label class="label-control" for="other"&gt;Other&lt;/label&gt;
                                                     &lt;div class="controls"&gt;
                                                        &lt;input type="text" class="input-xlarge" name="#template#_#questionid#"  id="question_#questionid#"&gt;
                                                     &lt;/div&gt;
                                               &lt;/div&gt;
                                          &lt;/cfcase&gt;
  
  
  
                                      &lt;/fieldset&gt;     
                                      &lt;/cfswitch&gt;         
                               &lt;/cfloop&gt; 
                              &lt;p&gt;&lt;/p&gt;&lt;br /&gt;
                              &lt;cfif startrow GT 1&gt;
                                    &lt;a href="#buildUrl(action='survey.survey_question',querystring='surveyid=#rc.surveyid#&amp;startrow=#startrow-perpage#')#" class="btn"&gt;Previous&lt;/a&gt;
                              &lt;/cfif&gt;
                              &lt;cfif (startrow + perpage - 1) lt rc.questions.recordcount&gt;
                                    &lt;a href="#buildUrl(action='survey.survey_question',querystring='surveyid=#rc.surveyid#&amp;startrow=#startrow + perpage#')#" class="btn"&gt;Next&lt;/a&gt;
                              &lt;cfelse&gt;
                                    &lt;button type="submit" name="submit" class="btn btn-success"&gt;Finish&lt;/button&gt; 
                              &lt;/cfif&gt;
                        &lt;/div&gt;  
                   &lt;/div&gt;
               &lt;/div&gt;
       &lt;/form&gt; 
  &lt;/cfoutput&gt;
  </code></pre>