Jump to content

propogating session information across files


jwhite68

Recommended Posts

I have files in a /test/ directory that propogate session information fine.  But when I link to another page in a subdirectory of /test/  -namely /test/utility/app/ - the session information is not available.

 

Is this some restriction in PHP?  Does anyone have any ideas?

The code starts as:

 

ini_set("session.gc_maxlifetime", 3000);
ini_set("session.use_cookies", 1);
ini_set("session.use_trans_sid", 0);

session_start();
include("../../../include/reg_variables.php");
include("../../../dbconnect.php");
include("../../../web_config.php");

 

Thats the odd thing. session_start() is at the start of the utility.php called (which resides in a different directory). I dont thinkt he ini_set assignments will cause issues before it.

 

 

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.