php - Two Steps to set Session as Logged In ← (PHP)
Solution:
Put your session_start() on the top of your index.php file (That file which includes the others.)
Answer
Solution:
seem like your page needs to be refreshed, or just throw an ajax call in there to update the button value according to session.
Source