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? Quote Link to comment 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? Quote Link to comment 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();? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.