Update global.php

Removed some unneeded code, added session's.