What is the difference between
session_destroy();
session_start();
and
session_regenerate_id();
They look like the same in cookie behaviour but idk if any difference in server-side.
I'm using the upper solution after successful login as I saw lower one has a warning on the manual.
Currently, session_regenerate_id does not handle an unstable network well, e.g. Mobile and WiFi network. Therefore, you may experience a lost session by calling session_regenerate_id.
I want to know if there's any bad in my solution vs the manual solution.