Page 1 of 1

Inconsistence in application on same device

Posted: Tue Mar 03, 2015 1:04 pm
by kamal

Hello Appery Team,
My application is shopping cart type. I have userA and userB. When I login through user A and add 2 items in cart and log off. Now I am login through userB and when I see userB cart, it shows me cart 2 items of userA and now userB log off. Now userA log in the application and when I see userA cart it shows empty. I am checking this behaviour on same device. Its woks fine on different device.

Can you suggest me solution.It's urgent issue.


Inconsistence in application on same device

Posted: Tue Mar 03, 2015 2:09 pm
by Alena Prykhodko

Hello,

1) If you use LSV to save cart, check whether all LSV are cleared on app load.
2) How do you query as a UserA or UserB , how do you differ users ?


Inconsistence in application on same device

Posted: Tue Mar 03, 2015 3:37 pm
by kamal

Can you please tell me what is "LSV".

I am calling LoginService using

LoginService.execute({

Code: Select all

                 xhrFields: { 

                     withCredentials: true 

                 } 

             }); 

and same for cart service for both userA and userB.

LoginService URL is something like that "https://www.demo.com?username="" & password=""


Inconsistence in application on same device

Posted: Tue Mar 03, 2015 5:55 pm
by Evgene Karachevtsev

Hello Kamal,

LSV is local storage variable, you can find more info about it here: http://devcenter.appery.io/documentat...


Inconsistence in application on same device

Posted: Thu Mar 05, 2015 10:24 am
by kamal

Hello Alena Prykhodko

I have used localStorage.clear(); method but does not got any success.

Query for userA and userB

I am calling LoginService using

LoginService.execute({

xhrFields: {

withCredentials: true

}

});

and same for cart service for both userA and userB.

LoginService URL is something like that "https://www.demo.com?username="" & password=""

Can you provide any solution.