By default the page after login.php is authorize.php which just checks the information then sends it off to index.php. From index.php I cannot get to my page 'volunForm.php', it just redirects me back to the login page. This is my first ever login system and my first time using sessions. Am I doing it all wrong? Is there a way I can make my sessions expire after certain time automatically and more importantly getting them to work across pages.
index: http://pastebin.com/Rc5zUJMA
volunForm: http://pastebin.com/Z65L7dZu
authorize: http://pastebin.com/aHfdYwLM