SY-UNAME in portal does not get the current login user
I have a problem in the portal of SRM 7.13 which I have an enhancement to show the organization for the logging user. The problem is the SY-UNAME does not return the current user in the following scnario:
I if I login into the portal by user A the SY-UNAME will return A. But, when I logoff then login with user B the SY-UNAME will return A not B!!
It is working fine only if I close the browser and open the portal again for IE or Chrome . Can any one help me with this problem to retrieve the current user name.