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?
Use it once per page, at the very top, before you plan to use any $_SESSION variables
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With