On Dec 4, 8:22 am, Austin <[email protected]> wrote: > You could reuse a token for a particular user within the token's two > hour window.
Yes, I was going to suggest something like this. You can store the token and the time it was created in a cookie, and re-use the token if it hasn't expired. >If you can be confident that a user has closed a tab, you could >reuse the token from that tab for the duration of that token's 2 hour >window. Note that if you're worried about the user having more than one window/ tab open, re-using tokens or not won't make any difference: a channel isn't keyed by token, it's keyed by the client id that you create the token with. So if you have multiple tabs open with multiple tokens created with the same client id, only one (maybe 2, since we allow some redundancy, typically for the page-refresh case) will actually receive messages. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
