I have looked into some codes about session management.
Sequense of session functions are something like that
I am confused about why session_destroy function is called before session_register function.Code:session_start(); //starts session
session_unset();//remove all the data from the session
session_destroy();//remove the session itself
//and then
session_register(); //is called
Thank You.
