I don't get ANY warnings at all: nor at 7 nor at 15. OK - I get a lots of notice about some variables being undefined by index_whosonline but that's about it. No notices about "session already started" and no other errors. If I put autosession to 1 I get exactly the same notices.
Also I was checking what's happening with the cookie: when I log in, cookie is written as it should be. Then whatever I do (click ANY link) authenticate fails since cookie does not exist any more. global ${$config['prefix']}.w3t_mysess is empty and cookie is deleted and replaced with an almost empty one: there are variables but no values for them.
OK - I just tried this again to be sure and the cookie now remains - it just looks like the session_start() is not called BUT it is. I used PEAR var_dump to get session_Id
<br />$thisSession = Session_Name().'='.Session_ID();<br />require_once('Var_Dump.php');<br />Var_Dump::display("session_start() $thisSession", '', false, VAR_DUMP_NO_CLASS_INFO);<br />
And it has the same value when I log and when I click anything else - PHPSESSID=c033bb0366c304350deb36403d8a9980.
Now I just tried to output ${$config['cookieprefix'] . "w3t_mysess"} before and after the session_start() - it's empty even when logged in
hence I tried the same with autosession = 1 and it works. When I click something else I get a value for ${$config['cookieprefix'] . "w3t_mysess"}.
Looks like get_input is not working if the session_start() call is not made before... let me try.
Yap
I just moved the if block with session_start() above get_input if block - even upper before find_environmental call since this one is also using global server var (e.g. $_SERVER).
Here is the
<br />if (isset($config['one_community']) && ($config['one_community'])) {<br /> define('ONE_COMMUNITY', "1");<br /> include("$thispath/oc.inc.php");<br />} <br /><br />// ----------------------<br />// Start the session here - BEFORE any references to server global vars (by PaTNerSan)<br />if ($config['tracking'] == "sessions") {<br /> session_save_path($config['sessionpath']);<br /> session_start();<br />} else {<br /> $HTTP_SESSION_VARS = "";<br />} <br />
Sweeet