Sharing Controllers Between Applications

i have two apps with this structure




app1/

    controllers/

        AAAcontroller.php

        sessioncontroller.php

/app2

    /controllers

        BBBcontroller.php

        sessioncontroller.php



i would like to use the same sessioncontroller in both applications reusing code

something like this:




common/

    controllers/

       sessioncontroller.php

app1/

    controllers/

        AAAcontroller.php

app2/

    controllers/

        BBBcontroller.php



this not work, at main.php




	'import'=>array(

		'common.components.*',               <this work

		'common.extensions.*',               <this work

		'common.lib.*',                      <this work

		'common.controllers.*',              <this not work

	),



any idea how to approach it?

multiple controller folders?

CWebApplication::$controllerMap

uauuu!! works like a charm. phtamas you are the f****** master

at main.php




import

'import'=>array(

                'common.components.*',               <this work

                'common.extensions.*',               <this work

                'common.lib.*'                      <this work

        ),


'controllerMap'=>array(

                'session'=>'common.controllers.SessionController'        <this work

        ),