I am declaring session variable on one page and trying to retrieve it on another page.
Page 1
session_start();
if (!isset($SESSION[sc])) {
$SESSION[sc] = some_value;
}
Page 2
session_start();
some_variable = $_SESSION[sc];
The value on the second page is blank.
Is this the right way to use sessions ? If not, then what am I doing wrong ?
Please help!!!