Clear Stateful Form


I’m new to Yii so I hope my problem will turn out to be easy and fast to answer. ;)

I’ve created multipage form, which saves each step into pageStat with:


After saving all data to DB, I’d like to clear pageStat to prevent filing form with previously used data.

I’ve tried:




and none of this works permanent - when I write:


echo $this->getPageState('step1');

the return is empty, but when I remove first line and refresh page - the value of step2 returns.

Thus my question is - how to permanenty clear value of pageStat?