Not medication. Medication is not the primary treatment for dissociative disorders -- various kinds of talk therapy (including cognitive therapy) are. Also, expressive art therapies can increase self-awareness, cope with symptoms and traumatic experiences, and promote positive integration. Sometimes hypnosis can be helpful. Medications might be used for accompanying symptoms like anxiety & depression, though.