Rox
Posts: 0
Joined: Mon Jun 23, 2014 5:23 am

Reset Login info on Logout

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

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

Reset Login info on Logout

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.

Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Reset Login info on Logout

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");

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Reset Login info on Logout

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...

Return to “Issues”