Page 1 of 1

When passing local storage variable with multiple users do I have to map the sessionToken for each service I create?

Posted: Tue Nov 05, 2013 4:53 pm
by Jeff6301705

I have gotten the items to populate, but it seems like there is a refresh code written somewhere, I don't know where that would be. I click on the page that has my list in it, and it transfers that information to the next, however it's only there for a minute. then it disappears and shows "undefined" I've looked at all the services I have listed for that page, and I'm not seeing where the issue would be, any ideas?

Image
This is a snapshot of what I get when I debug. I can see the command, but how would I change it? I didn't write it.


When passing local storage variable with multiple users do I have to map the sessionToken for each service I create?

Posted: Tue Nov 05, 2013 5:03 pm
by Kateryna Grynko

Hi Jeff,

Yes, you should map sessionToken to each service that works with database. Could you please clarify the second question?


When passing local storage variable with multiple users do I have to map the sessionToken for each service I create?

Posted: Wed Nov 06, 2013 1:25 am
by Jeff6301705

During the page transition I can see that the items that I'm wanting loaded from the previous page are showing up.. Then it acts like it refreshes and instead of listing the items from the previous page it comes back "undefined" I used chrome tools and as you can see from the previous posting there is a command there to refresh. I think that is whats not allowing the variables from the previous page to be listed. How would I find out if that's what's going on, or how would I correct this problem?


When passing local storage variable with multiple users do I have to map the sessionToken for each service I create?

Posted: Wed Nov 06, 2013 2:54 am
by maxkatz

If the local storage variables become undefined, most likely somewhere in the code the variables are being over written.