Hello All, I have created a login system, which works as expected on php 4.2. When i was asked to move it onto an older server using 4.0.6, the system stopped registering sessions.
main page: <? session_start(); include('PROC_Login.php'); login($username,$password); PROC_Login.php: function login($username, $password){ global $HTTP_SESSION_VARS; // validate user ... session_register('AuthUser'); $HTTP_SESSION_VARS['AuthUser'] = $username; do some other stuff .. } This code was modified to backdate it to version 4.0.6, and now it wont register the session. Is it because its inside the function, or to do with the older version of php? If i move it out of the function the session gets registered correctly. I did try adding session_start() inside the function, in the same include page. still no luck. Ideally i would like to keep it inside the function as its more tidier. any ideas as to why this wont register would be fannytastic. Thanks Jarratt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php