title: where should session_destroy() code be placed?
body: <p>I have read several questions on stackoverflow about sessions and never found an answer to this :-)</p>
  
  <p>That session_start() should be placed before any other code - even before the html tag is emphasized by everyone who responds to session questions. I am learning PHP mostly through this site and building my first php website as I go. I have understood all about unset, destroy and clear other than where they should be placed on the page.</p>
  
  <p>I know this must be a very basic question but after four days of reading answers about logout and not finding it, am getting a little desperate. </p>
  
  <p>Any help is greatly appreciated,
  thank you</p>