Warning: session_destroy of: Trying to destroy uninitialized sessionq error

  • 2020-05-07 19:24:45
  • OfStack

It has been verified that the session_destroy() function must first call the session_start() function before using the session_destroy() function.
That is, to have the following code:
 
<? 
session_start(); 
session_destroy(); 
?> 

Related articles: