Hi Prashanth,
the Invalidate method was not implemented in the 3.1 version yet. Could you please upgrade your installation to the current version?
Upgrades are for free. Then the Invalidate method will work.
There is not a simple way to update the current UserInfo object in the version 3.1. It will update the object if the user logs out and in.
Best regards,
Helena Grulichova