title: What's the proper use of php.ini's session.save_path?
body: <p>I'm running PHP on Windows/IIS.</p>
  
  <p>My session variables don't seem to be preserved from page-to-page.</p>
  
  <p>This code&hellip;</p>
  
  <pre><code>//echos out the session variables in a nice format for inspection
  echo "&lt;p&gt;&lt;pre&gt;";
  print_r($_SESSION);
  echo "&lt;/pre&gt;&lt;/p&gt;";
  </code></pre>
  
  <p>&hellip;outputs blank values, like this&hellip;</p>
  
  <pre>
      Array  
      (  
          [s_firstvar] =>  
          [s_var2] =>  
          [s_third] =>  
          [s_numberfour] =>  
          [s_youget] =>  
          [s_thepoint] =>  
          [] =>  
      )
  </pre>
  
  <p>I found suggestions on a forum&hellip;</p>
  
  <blockquote>
    <p>I had a similar problem recently (Win2000, IIS), and it turned out that PHP
    did not have write-access to whatever directory that the session data was
    stored in. You may want to look into this.</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>have you set session.save_path?</p>
  </blockquote>
  
  <p>What's the proper use of php.ini's session.save_path?  And, is that my problem?</p>