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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.