title: why ini_set('session.gc_maxlifetime',60) doesn't work?
body: <p>the default expire time of session is 1440,i want to reduce this time to 60 second,but when i use <code>ini_set('session.gc_maxlifetime','60')</code> in the first page it work,but it doesn't work in an other page,
  please tell me what is my wrong?</p>
  
  <pre><code>    ----------index.php-----------
      &lt;?php
      ini_set('session.gc_maxlifetime','60');
      session_start();       
  
      $_SESSION['id']='123';
  
      print('&lt;br/&gt;&lt;a href="link.php"&gt;link&lt;a/&gt;');
      ?&gt;
  
  
      ----------link.php----------
      &lt;?php
      session_start();
  
      if(isset($_SESSION['id'])){
          ini_set('session.gc_maxlifetime',60);
      }else{
          header('Location:index.php?ERROR');
      }
  
      print('&lt;br/&gt;&lt;a href="link.php?1"&gt;menu&lt;a/&gt;');
      ?&gt;
  </code></pre>