60
Views
5
Comments
i want to hide the loggedin user information in browser
Question
Service Studio Version
11.54.18 (Build 62611)

Dear Team

I am able to see logged user id information in browser under local storage -  $OS_Users$$ClientVars$$SESSION_USER_ID. i want to hide this information. please help

Thanks

Saravana Kumar V

2023-05-21 17-24-52
Aniket Gaikwad

Hello Saravana Kumar V,

  • Client variables are always stored in the session storage.
  • I do not think there is a way to hide them.

Here is a possible solution:

  1. Encrypt the SESSION_USER_ID before you store it in client variable. You can do that by creating a client action which converts the SESSION_USER_ID into the encrypted string.
  2. Decrypt the SESSION_USER_ID using another client action which will take the encrypted string and decrypt it whenever you want to use it in a aggregate or action or anything else.

As the SESSION_USER_ID will only last until the session is active, we should not worry about its deletion. It will automatically get deleted after the session ends.

READ THE FOLLOWING QUESTIONS THAT MIGHT HELP YOU:

1.https://www.outsystems.com/forums/discussion/55664/reactive-web-set-client-variable-using-server-logic/

Hope this helps!


UserImage.jpg
saravanakumar v

Hi Aniket Gaikwad

I am not able to find this client variable in the application. It seems like it is part of outsystems session.do i need to check in any other module ? please help

Thanks

Saravana Kumar V

2023-05-21 17-24-52
Aniket Gaikwad

I guess you cannot encrypt it as it is set by Outsystems. It will always be visible.

UserImage.jpg
Alexandre Yip

Hi saravana kumar V, 

Check out here where to find the client variables

https://success.outsystems.com/documentation/11/reference/outsystems_language/data/handling_data/client_variable/

Hope that it helps you 

UserImage.jpg
Narendra Maheshwari

I believe you can not encrypt the "$OS_Users$$ClientVars$$SESSION_USER_ID" variable because it is set by OutSystems.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.