Jump to content

Accessing session in a php page echoed by fstream


hassanz25

Recommended Posts

Hi everybody,

 

if I load a php page from controller.php like this:

 

$handle = fopen("http://localhost/MvCphp_1.0/View/maincatgory.php", "rb");

echo stream_get_contents($handle);

fclose($handle);

 

 

then the created session, in the file where I am running the above code,  for instance $_Sesssion['hr']='ge'; will not be accessible in echoed file above "maincatgory.php" I don't know why? and I want to know how can I access...?

 

Please Help

 

Cheers,

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.