Login, authentication and sessions in PhoneGap?

2,122 views
Skip to first unread message

Patrick Breitenbach

unread,
Sep 14, 2011, 8:16:47 PM9/14/11
to phon...@googlegroups.com
Are there any docs or tutorials on how to do logins and sessions in PhoneGap? Assuming I have a database of users and passwords, I can Ajax a username/password and return a Yes or No. Then how do I manage the session in my PhoneGap app? Do I save a session ID as a cookie or to some local store? Can I use UUID as a low-tech identifier?

Umesh

unread,
Apr 23, 2012, 7:24:00 AM4/23/12
to phon...@googlegroups.com
I am also stuck in same Problem... I have 4digit no with me when i call ajax it will returns me some info with session ID. How do i get the  SessionID in my Phonegap application?? n after that  on each HTML in PhoneGap, i need to send nos with sessionID to ajax?  Any help ?

Umesh

unread,
Apr 23, 2012, 7:25:03 AM4/23/12
to phon...@googlegroups.com


On Thursday, 15 September 2011 05:46:47 UTC+5:30, Patrick Breitenbach wrote:

Libby

unread,
Apr 23, 2012, 4:27:17 PM4/23/12
to phon...@googlegroups.com
This is not a tutorial, but code is available to peruse. Using a $.get,
the response is a userid and session. Peel those off and
save in localStorage.

Uses child browser and an openID client helper to guide the user
to google or yahoo openid server. Successful login via openid
authentication results in the above get success return values.
Reply all
Reply to author
Forward
0 new messages