kamal
Posts: 0
Joined: Tue Dec 30, 2014 5:46 am

Inconsistence in application on same device

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.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Inconsistence in application on same device

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 ?

kamal
Posts: 0
Joined: Tue Dec 30, 2014 5:46 am

Inconsistence in application on same device

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=""

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Inconsistence in application on same device

Hello Kamal,

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

kamal
Posts: 0
Joined: Tue Dec 30, 2014 5:46 am

Inconsistence in application on same device

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.

Return to “Issues”