moved session_start() to AppMain::run()