Saving session data from javascript

31 views
Skip to first unread message

Phil McDonnell

unread,
Jan 18, 2012, 12:29:38 PM1/18/12
to google-a...@googlegroups.com
I know app engine saves the session data into the datastore.  Is there a way to get access to this from my javascript?  For instance, my users log into facebook via a js api so I'd like to be able to quickly save the fb id handles to the session from my js code.

Thanks,
Phil

Jeff Deskins

unread,
Jan 18, 2012, 4:13:41 PM1/18/12
to google-a...@googlegroups.com
You would have to make an AJAX call passing the data to your app.  From there, your server side code (Java/Python/Go) can save the info into the datastore or put it into session.

Jeff

Phil McDonnell

unread,
Jan 18, 2012, 7:37:34 PM1/18/12
to google-a...@googlegroups.com
I definitely get that I need to connect the js to the java server side code via some sort of AJAX. Are there some standard or easy ways to implement this?  I remember from a past project that there were some clunky, but generally good ways to do this in GWT.  Does regular java appengine have anything similar or is there a popular way to do this?

Thanks so much,
Phil

On Wed, Jan 18, 2012 at 4:13 PM, Jeff Deskins <jeff.d...@gmail.com> wrote:
You would have to make an AJAX call passing the data to your app.  From there, your server side code (Java/Python/Go) can save the info into the datastore or put it into session.

Jeff

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/tPKQc1l6vv0J.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Reply all
Reply to author
Forward
0 new messages