Solved

setting sessions

Posted on 2007-11-18
2
161 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 142

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

832 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