Page 2 of 2

Reset Login info on Logout

Posted: Tue Jul 22, 2014 1:51 am
by Rox

Yurii,
Is there any way to do this via javascript? Instead of using an event to navigate to the page, I use the javascript API to navigate. But I am still having the issue of the login username and password being present after returning to a page.

Thanks,
Rox


Reset Login info on Logout

Posted: Tue Jul 22, 2014 2:15 am
by Yurii Orishchuk

Hi Rox,

Yes, sure

You can use following JS code to load certain page:

pre

//Note you need replace "Login" with page you need.
Appery.navigateTo('Login', {reloadPage: true});

/pre

See details about it here: http://devcenter.appery.io/documentat...

Regards.


Reset Login info on Logout

Posted: Tue Jul 28, 2015 6:08 pm
by Jack Bua

how would I remove a value in a LSV but not all of the LSV? For example, I want to remove A from LSV User but keep B in the same User LSV.

so far, I can only remove the entire LSV:
localStorage.removeItem("user");


Reset Login info on Logout

Posted: Tue Jul 28, 2015 8:29 pm
by Illya Stepanov

Hi Jack -

Local storage is a pair of key and value --
The following snippet accesses the current domain's local Storage object and adds a data item to it using Storage.setItem().
precode
localStorage.setItem('myCat_is_a_key', 'Tom_is_a_value');/code/pre

emThe removeItem() method of the Storage interface, when passed a key name, will remove that key from the storage./em

via https://developer.mozilla.org/en/docs...