19.04.2017 - Make sure you start the session on every page you want to get or set session variables. session_start(). It should be as simple as that, and it .