Hi Dhayaanandh,
The getUserSession() return object just contains the information about the currently active session. Setting some fields on it is not expected to modify the behavior in the general case.
It is not really clear what you are trying to achieve. Where do you expect your change to be reflected?
Please elaborate a bit on the use case and include a screenshot if that would help (obfuscating any legally sensitive info).
Cheers,
Vladi