Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

setting sessions

Hi,
I'm using the following lines to set an array

$_SESSION["barea"][0] = "Test";
$_SESSION["bareaf"][1] = "test.php";

but when i try to echo them they are blank, anybody know what the problem is?
0
markmchugh
Asked:
markmchugh
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
did you use session_start() in the 2 pages?
0
 
markmchughAuthor Commented:
Doh!!!! forgot it on the second page!!!! sorry...
0
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.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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