Solved

setting sessions

Posted on 2007-11-18
2
163 Views
Last Modified: 2007-11-18
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
Comment
Question by:markmchugh
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 20307303
did you use session_start() in the 2 pages?
0
 

Author Comment

by:markmchugh
ID: 20307309
Doh!!!! forgot it on the second page!!!! sorry...
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question