google app engine - Refreshing the token with the GAE channel API -


i'm building simple chat application google app engine (python) , channel api. when user logs on application, token issued them , added list in datastore. however, token expires after 2 hours (and there other kinds of errors occur). @ time onclose or onerror handler triggered in javascript , intent send ajax message tell server remove old token datastore , create new token reopen channel, sent ajax response. resend message every few seconds until ajax receives response.

this works fine when test locally, when deploy application internet, works (maybe 5% of time).

can suggest if there's better way i'm trying do, or can offer advice why method working inconsistently? seems though ajax message failing reach server entirely, strange because other ajax based functionality on page appears work fine.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -