• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

sessions won't work

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

$_SESSION['Login']

i am just trying a simple echo

echo $_SESSION['Login'];

i don't get anything why?
0
Paul S
Asked:
Paul S
1 Solution
 
Marcus BointonCommented:
You have called session_start() before this haven't you? You have put something into $_SESSION['Login'] that's visible?
0
 
Paul SAuthor 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.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now