Set a key after Login

Hi All ,i need set some key,value once after Login and , i have set key ,value in Login Page Client_script as a ' localStorage.setItem(storeKey, value);' ,so How Can this key After login for Logged user ?

You better set it in your first page that users will access after successful login, not in the Login page. On the client side, you can check if a user is logged in by ew.IS_LOGGED_IN.

1 Like

In my solution each user level group have own landing page so is there any common page after login?

The landing page depends on your user level permissions, there is no "common" page. In that case, you better use the global Client Side Script so it will be called by all pages. You should also check if the local storage is already set first so you won't set repeatedly.

1 Like