yii session in index.php

Please can someone help me!

I’m using the absolutely fantabulous yiishop extension for my website.

Problem being my code in index.php looks like this:




    // change the following paths if necessary



    // change the following line to false when in production mode. Not needed when locally debugged.

    $debugServer = false;


    defined('YII_DEBUG') or define('YII_DEBUG',($debugServer or $_SERVER['SERVER_ADDR'] == "::1"));

    // specify how many levels of call stack should be shown in each log message

    defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);




    $ua = $_SERVER['HTTP_USER_AGENT'];

    if (stristr($ua, "Windows CE") 

        or  stristr($ua, "AvantGo")

        or  stristr($ua, "Mazingo") 

        or  stristr($ua, "Mobile") 

        or  stristr($ua, "T68") 

        or  stristr($ua, "Syncalot") 

        or  stristr($ua, "Blazer")) 





        if (isset($DEVICE_TYPE) and $DEVICE_TYPE=="MOBILE")  

            $_SESSION['BrowserType'] = "PDA_Styles" ;           


            $_SESSION['BrowserType'] = "WEB_Styles" ;


   // $_SESSION['BrowserType'] = "PDA_Styles";





the session_start() at the top seems to be making issues.

I’m getting this error - __php_incomplete_class object error

and this error [b]Fatal error: EShoppingCart::getItemsCount() [<a href=‘eshoppingcart.getitemscount’>eshoppingcart.getitemscount</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;Listings&quot; of the object you are trying to operate on was loaded before unserialize() gets called or provide a __autoload() function to load the class definition in C:\home\smartlst\protected\extensions\yiishop\EShoppingCart.php on line 127


What can I do because I need that session_start() for other parts of my site??????