It is good practice to explicitly destroy it each time. Technically, the objects are stateless, in that when the page is done loading, they disappear, but it is considered good programming practice to destroy them anyway --
And especially if dealing with connection objects and other things that can tie up server and db resources unless you destroy them as soon as you're done using them... you might even want to destroy them halfway through the page if you aren't going to use them again -- will improve the performance on high traffic sites (low traffic, too, but you just won't notice it very much).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.