title: Setting default Datepicker date using PHP session variable date
body: <p>I'm setting the date in the Datepicker by using PHP. </p>
  
  <p>The date is set using $_REQUEST and I store this in a session variable. </p>
  
  <pre><code>$date = $_REQUEST['date'];
  $_SESSION['date']=$date;
  </code></pre>
  
  <p>The session variable and date is getting set as required. </p>
  
  <p>I set the default datepicker value by using the following PHP script:</p>
  
  <pre><code>&lt;div id="divDatePicker" class="input-append datepicker"&gt;
                    &lt;?php if($_SESSION['date']){ ?&gt;
                  &lt;input id="filter-date" size="16" type="date" value="&lt;?php echo $_SESSION['date'];?&gt;"/&gt;
                    &lt;?php } else { ?&gt;
                  &lt;input id="filter-date" size="16" type="date" value="&lt;?php echo date('Y-m-d');?&gt;"/&gt;
                    &lt;?php } ?&gt;
                    &lt;/div&gt;
  </code></pre>
  
  <p>So if the date isn't set by default today's date shows up which works just fine as well. </p>
  
  <p>The problem arises when I navigate to another page.</p>
  
  <p>So my datepicker is on 1.php. When I go to 2.php and navigate back to 1.php via breadcrumbs even though the session variable for date is still set (I can see this using var_dump) the Datepicker does not get set. So what shows up is mm/dd/yyyy in the Datepicker. </p>
  
  <p>Why isn't it getting set to $_SESSION['date'] on navigating back? </p>