title: Yii2 set session timeout - I am unble to set session timeout in yii2
body: <p>Below is the configuration I used backend/config/main.php in my application But still I am unable to set session timeout.</p>
  
  <pre><code>   'user' =&gt; [
          'identityClass' =&gt; 'common\models\User',
          'enableAutoLogin' =&gt; true,
          'authTimeout' =&gt; 3600,
      ],'session' =&gt; [
          'class' =&gt; 'yii\web\Session',
          'cookieParams' =&gt; ['httponly' =&gt; true, 'lifetime' =&gt; 3600 * 4],
          'timeout' =&gt; 3600*4,
          'useCookies' =&gt; true,
      ],
  </code></pre>
  
  <p>My requirements are
  1.Expire session if inactive of user more than 30 minutes 
  2.If browser is closed, don't set session expire before 30 mins.</p>
  
  <p>Thank in advance</p>