A
Anonymous
Guest
Hi,
I m creating a session after a user login...
here an extract where I create it
Then further in my page I have a link to some other page...normal you will say.. but then I dont understand...
In this new page I do session_start and when I do session_id();
I get the SID BUT when I do
There is nothing output.. Why my Array is empty???
Help please....
thanks
francois
I m creating a session after a user login...
here an extract where I create it
Code:
if($found ==1){
$Result = mysql_query("SELECT * FROM user WHERE user='$user'", $Link);
$Row = mysql_fetch_array($Result);
session_start();
session_register('privileges');
session_register('status');
$HTTP_SESSION_VARS['privileges'] = $Row['privileges'];
$HTTP_SESSION_VARS['status'] = $Row['status'];
}
Then further in my page I have a link to some other page...normal you will say.. but then I dont understand...
In this new page I do session_start and when I do session_id();
I get the SID BUT when I do
Code:
print($HTTP_SESSION_VARS['status']);
There is nothing output.. Why my Array is empty???
Help please....
thanks
francois