Temporary restraining orders remain in effect for 21 days. If you receive a long-term restraining order, it can last up to five years.