template for session & dangerous characters assignment