title: Saving values in a session
body: <p>I need your help.</p>
  
  <p>Through the URL I get Data for the position and that value is getting passed to a python script.</p>
  
  <p>The first time everything is fine, they value 200 comes in and the stepper make 200 steps and reaches the defined position. The next time, another value is requested like 100 or maybe -100 (just for example), through the steps a defined position should be reached.</p>
  
  <p>The Problem is if my stepper is on 200 steps and should reach position -100 he actually needs -300 steps but through the button click in the index.php the value -100 is getting passed.</p>
  
  <p>I tried to solve this problem with a session to overwrite the actual position and get the the "real" value via subtracting or adding up both values                    but it doesn't work out for me...</p>
  
  <p>Have you got any ideas how can i solve it ?</p>
  
  <pre><code>session_start();
  
  $newvalue = ($_GET["value"]);
  
  
  $_SESSION['test'] = $oldvalue + $newvalue ;
  
  echo $_SESSION['test'];
  </code></pre>
  
  <p>The problem is I don't know how to save the <code>oldvalue</code> when the page gets refreshed and the new value is coming in</p>