Jump to content

session problem


shivani.shm

Recommended Posts

hi all

i m geting a strange problem ...my session variables are lost when redirecting the page and it has come all of  a sudden as the same code was wrking fine ...

and i m unable to retify the problem.....i m doing somethg like this

session_start();

      $_SESSION['USERNAME']        = $sUsername;

    $_SESSION['EMPLOYEEID']      = $aEmployee["employee_id"];

    $_SESSION['POSTID']          = $aEmployee["post_id"];

$_SESSION['EMPLOYEENAME']    = $aEmployee["person_name_last"].", ".$aEmployee["person_name_first"]." ".$aEmployee["person_name_others"];

      $_SESSION['EMPDIVISION']    = $aEmployee["company_division_id"];

 

when i try to print this array in another page i m geting the array empty

can anyone plz tell me the why this is happening ....i m using firefox browser.....does any seting of firefox has to be changed......plz suggest

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/116938-session-problem/
Share on other sites

hi all

i m geting a strange problem ...my session variables are lost when redirecting the page and it has come all of  a sudden as the same code was wrking fine ...

and i m unable to retify the problem.....i m doing somethg like this

session_start();

      $_SESSION['USERNAME']        = $sUsername;

    $_SESSION['EMPLOYEEID']      = $aEmployee["employee_id"];

    $_SESSION['POSTID']          = $aEmployee["post_id"];

$_SESSION['EMPLOYEENAME']    = $aEmployee["person_name_last"].", ".$aEmployee["person_name_first"]." ".$aEmployee["person_name_others"];

      $_SESSION['EMPDIVISION']    = $aEmployee["company_division_id"];

 

when i try to print this array in another page i m geting the array empty

can anyone please tell me the why this is happening ....i m using firefox browser.....does any seting of firefox has to be changed......please suggest

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/116938-session-problem/#findComment-601407
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.