Zend certified PHP/Magento developer

Magento2.4.3 success/error notification not displaying throughout admin panel

I’ve upgraded version from 2.3.5 to 2.4.3 and I found that success/error notification messages are not showing up throughout the admin panel for ex if I flush the cache it will not give any success message for that. Now I found the issue that is Store -> Config -> System -> Security -> Max Session Size in Admin if I make this 0 then started working but If I make any diff value then its not. Any solution for this. it should work with the diff value than 0.