title: Yii Session not getting over
body: <p>I am trying to change the default session time out value. In my controller i have done this:</p>
  
  <pre><code>  public function beforeAction($action) {
      $session = new CHttpSession;
      $timeout = $session-&gt;getTimeout();
      if ($timeout != 10) {
        $session-&gt;setTimeout(10);
      }
      return true;
    }
  </code></pre>
  
  <p>But my session never gets timed out an i can access the page even after being inactive for 10 sec.</p>
  
  <p>I also tried to do it through config by session component like this:</p>
  
  <pre><code>   'session' =&gt; array(
              'sessionName' =&gt; SITE_SESSION_COOKIE_NAME,
              'class' =&gt; 'CHttpSession',
              'timeout' =&gt; 10
          ),
  </code></pre>
  
  <p>but same result. Session dosent time out! Am I missing out on something?</p>