Here's another solution:

1. Cookie the user with a UUID for each browser page instance. You can do
this either server side or client side, though I'm a bit wary of client side
UUID generation. For most intents and purposes, the possibility of a clash
is too low to worry about.
2. If the user is not logged in, when submitting the data, save the data
either in Memcache or the datastore with the UUID as a key. If you use the
datastore, you'll have to set up a cron job that does garbage collection.
3. When the user relogs in, retrieve the state from the server side and
popular the UI.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Tue, Oct 12, 2010 at 6:36 AM, Shedokan <[email protected]> wrote:

> Maybe open the login in a new window or in a new tab and once the user
> has logged in he will click a button like "I have logged in" and then
> just ajax to the server and check his login status.
>
> On 5 אוקטובר, 20:27, Haris <[email protected]> wrote:
> > A good idea. However there bound to be user who type very long message
> > and time out.
> >
> > On Oct 5, 7:56 pm, Shedokan <[email protected]> wrote:
> >
> > > Maybe instead try asking the person to login before enabling him the
> > > option to write a message?
> >
> > > On Oct 3, 12:31 pm,Haris<[email protected]> wrote:
> >
> > > > Using Users Service, after filling up login and password and press
> OK,
> > > > onModuleLoad is executed. Basically the gwt module is reloaded. I am
> > > > going to loose data entry stuff form the user.
> >
> > > > For instant if someone is typing a forum post and click submit only
> to
> > > > discover that login already timeout. The person relogin using User
> API
> > > > login page
> > > > only to discover that the text typed is lost because of this.
> >
> > > > Any suggestion?
> >
> > > > Regards,
> > > >Haris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to