A "fraud alert" is valid for only 90 days. A "security freeze" remains in place until you lift it with your PIN code, which is provided when you place the freeze.
it is really important to be aware that the duration of the freeze varies based on your state - it isn't always "until you lift it". I believe pennsylvania is an example where it is a 7 year term.