I received an email answer to this post:
"Cookies work well; limited to 4k.... HTML5 storage isn't "standard"
on <2.0, PhoneGap has an SQLite implimentation, but was waaaaaaay more
fiddly than LocalStoragr last time I tried it on android1.6..."
But...
Cookies doesn't seems to be working on Phonegap apps.
I'm using this functions:
http://www.quirksmode.org/js/cookies.html
Like this:
On successful login:
createCookie("user_email_cookie",user_email,365);
createCookie("user_password_cookie",user_password,365);
When loading the page on other session:
if (readCookie('user_email_cookie')!='' &&
readCookie('user_password_cookie')!='') {
$('#email').val(readCookie('user_email_cookie'));
$
('#password').val(readCookie('user_password_cookie'));
}
But I always get NULL from the readCookie function, so I'm guessing
cookies don't work at all with phonegap?
Anyone?
On Apr 17, 7:43 pm, Wonderm00n <
wonderm...@gmail.com> wrote:
> The app I'm developing uses email and password on the first screen.
>
> The data is then validated trough Ajax to my PHP server.
>
> What approach do you think it's better to save the email and pass
> locally for future usage, if the user wants to, off course?
>
> - HTML5 Web Storage / Database?
> - Cookies (is this even possible with phonegap?)
> - Any other options?
>
> Don't forget I just want to store 2 simple strings...
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to
phon...@googlegroups.com
> To unsubscribe from this group, send email to
>
phonegap+u...@googlegroups.com
> For more options, visit this group athttp://
groups.google.com/group/phonegap?hl=en?hl=en