Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Is it possible to clear all variables and refresh everything when a user signs out.

The problem I'm facing is when the user logout, and another user signs in, the local storage variables and the fields are not cleared in all pages. Is there a way to reload application or clear everything when a user logs out?

Thank you so much! I'm almost done with my application.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Is it possible to clear all variables and refresh everything when a user signs out.

Hi Mike,

You can clear all LSVs with following JS code:

pre

localStorage.clear();

/pre

Then you can reload start page with following code:

pre

//Note you should replace "Screen20" with page name you need to reload.
Apperyio.navigateTo("Screen20", {reloadPage: true, transition: 'none'})

/pre

Regards.

Return to “Issues”