I have a session variable as an array and I want to empty it in some condition. Now what is a proper way to do this. I don't want to use unset because it will delete the variable and all I want is just to free the memory. What if I use $thisarr = array(), that would empty it of course, but will the memory be free? And how to check for memory usage? Please help. Thanks.