I’ve been going through some $_SESSION examples and I’m a little confused, should i use session_start() every time before I access or set $_SESSION['variable'] or should I only use session_start() once per page or just once the user has successfully logged in?
I’ve been going through some $_SESSION examples and I’m a little confused, should i
Share
Use it once per page, at the very top, before you plan to use any $_SESSION variables