Hi Hossein,
Can you check if you have enabled it via this command?
Get-OrganizationConfig | Fl -ActivityBasedAuthentication*
If not set it to Enabled set-OrganizationConfig -ActivityBasedAuthenticationTimeoutEnabled $true
==
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.