Question

I want to store some data on server so that when I login again, server should remember me and retrieve my previous data.

As of now as I'm not using any session management when I login with some username and send some message and all, it shows me some response and when I login with another username its showing me the same data of that previous user.

So here is the problem of not maintaining session.

So please anyone tell me how can I maintain session with ajax JavaScript and jQuery.

I can't use any server side script as I'm working with visual studio express 2012 for windows phone.

So guide me for session management or information about cookie in phonegap app.

Était-ce utile?

La solution

1. for storing

localStorage.setItem("username", "Smith");

for getting

localStorage.getItem("username");// here returns smith

ref

2 . second option use mobile database

Refer this example

3 . use cookies ref here for example of and plugins

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top