Moving session config to main app