What does the samesite flag on a session cookie do? What attacks might different settings of this value mitigate?

TechnicalSecurity TesterWeb Application TesterApplication Security Analyst