dstroy session

Hi there,

I created session and cached all data required for my application to minimize the database queries.

Now when user logouts I want that session (Cached data) should get destroyed but I don’t know how.

 Yii::app()->session["testarray"] = $data_array;  

This is how I am storing my information in cache. Here testarray is the name for that information session and data_array is the information i want to cache.

When User logs in I am setting this values.

Just I want to know that how I can destroy it at the time of logout.

Session is destroyed automatically when you call CWebUser::logout() and not supply true.

Thanks mike