sessions won't work

i have a linux / unix host and i can't get sessions to work. i am using this variable


i am just trying a simple echo

echo $_SESSION['Login'];

i don't get anything why?
LVL 11
Paul SDesktop Support Manager / Network AdministratorAsked:
Who is Participating?
Marcus BointonConnect With a Mentor Commented:
You have called session_start() before this haven't you? You have put something into $_SESSION['Login'] that's visible?
Paul SDesktop Support Manager / Network AdministratorAuthor Commented:
thank you for your help. I was making a dumb mistake. i am fairly new to php. I was calling session_start() on the page that i created the session variable on, but i wasn't calling session_start() on the page the was suppose to read the variable. I just added session_start to an include file and included it at the start of every page.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.