Changing permissions. Adding 'domain' to session config