my session variables not retaining values
hi all
i have been trying to use session variables but getting no results
my site is multipage and from first page i am storing value in session variable and retrieving it back in other pages but no variable retains its value in other pages
what i did was
if globalregister off
$page=$_GET["page"];
if($page > 1)
{
session_start();
$emp_nos = $_SESSION['MyEmpNos'];
/*for all other pages */
}
else
{
session_start();
$_SESSION['MyEmpNos'] = $emp_nos;
/*in my first page*/
}
but i am not getting MyEmpNos value retained in further pages
i tried even with global register = ON
and used
session_register()
also
but no results then to o
can somebody please help.................i need it urgently ..
nidhi
__________________
nidhi
|