clear up after session timeout?

Is it possible to clear Yii::app()->setGlobalState() variables if the session has timed out?

Thanks, Russ

That makes no sense to me: data in global state by definition is available across all sessions. That’s why it’s called global. If you are sure, you need that, the next question is: which of the sessions you may have should trigger the cleanup? There are probably always several sessions. So some of them expire all the time. So you would clean the data all the time.