jwhite68 Posted May 23, 2007 Share Posted May 23, 2007 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? Link to comment https://forums.phpfreaks.com/topic/52651-propogating-session-information-across-files/ Share on other sites More sharing options...
emehrkay Posted May 23, 2007 Share Posted May 23, 2007 are you using session_start() at the top of the sub-pages? Link to comment https://forums.phpfreaks.com/topic/52651-propogating-session-information-across-files/#findComment-259879 Share on other sites More sharing options...
taith Posted May 23, 2007 Share Posted May 23, 2007 nope... sessions are accessable from any file from that server... something else would be going on there... did you session_start();? Link to comment https://forums.phpfreaks.com/topic/52651-propogating-session-information-across-files/#findComment-259880 Share on other sites More sharing options...
jwhite68 Posted May 23, 2007 Author Share Posted May 23, 2007 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. Link to comment https://forums.phpfreaks.com/topic/52651-propogating-session-information-across-files/#findComment-259905 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.