ChttpSession open Issue

Hello there, long time reader ( and Yii dev) first time poster.

Recently we started using a tracing server-side software to try to identify bottlenecks in our web app (newrelic, for the record). I was surprised on what was causing this issue: ChttpSession::open was taking 8-12 seconds on almost all the traces that did an ajax request.

Is there any solution on this? Im storing the session on files as per default, not memcache/d. Thanks on advance.

Have you try, just for testing purpose, to use something like:

    'session' => array(

        'class' => 'CDbHttpSession',

        'timeout' => 3600,


        'connectionID' => 'db',



So this way the session data will be stored on database, yeah. I just guessed that session_start() is blocking when using files as session storage. If your code works, that will be another reason for moving our session storage to db or even cache.


Yes, just to understand if problem it’s just the storage type (file) or even in framework itself.

My pleasure.