I have assigned an array to a session variable.
Now I want to unset the array key. How can I perform this.
What I was trying was:
it gives error.
Can you please suggest me the way to perform this action.
Any help will be highly appreciated.
You can try the following
Yii::app()->session[$variable][$key] = null;
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.