2 settings, Session State Protection and Value Protected, and 3 places they can apply. Anton and Marwa explain.
Be aware of the order of operations in APEX. Keep this in mind: Processes happen before default operations on items. Anton and Marwa explain.