Trying to fix login issue
Revert "Trying to fix login issue"

This reverts commit 58ccbf90cc1893f523fadbb83a85417b651c3c8f.
Revert 58ccbf9..1746045

This rolls back to commit 58ccbf90cc1893f523fadbb83a85417b651c3c8f.
Revert 19cbec1..2d657cd

This rolls back to commit 19cbec13add22264056abb3c2c91f5f830f939ee.
added the new xm and marketing page
Hide session for testing.
moved the } before the mysql's
Updated the login script based on rewrite attempt
Fixed the loggin issue, duplicate redirect in session.php
added a debug function for logged in user