PHP - Request Lifecycle
You want to count how many times a user visits a page using PHP. Which approach correctly keeps the count between requests?
session_start() and a session variable keeps count.session_start() and increment it -> Option B15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions