I'm having an annoying problem and I know its because I'm an idiot so I need someone smart to show me the light. I'll try and keep it short.
I start my first page with an include function that includes a file with some common functions I want to use on every page. Then I start a session with session_start() and register some session variables I want to persist thru each page. On this first page the session variables display fine and the functions in the include file work fine. Then there is a link to the second page.
The second page starts exactly like the first but the session variables don't display. If I move the include function until after the session_start() and echo() the variables they will display until the include function is reached. So any session variables after the include function disappear.
Why is this? What have I done wrong?