rather than define your async interface to return void, return ReauestBuilder, then you can simply modify the headers to store your session ID, validate it in a filter on the server and you are on your way.
-jason On Apr 23, 2009, at 6:14 AM, ric.flair....@gmail.com wrote: > > Hi! > I would like to create login function (write username+password and > afterward session management) in my GWT app. > The first task is to display a login window to write username + > password. After on the server side these must be checked and give back > a session ID to client. There we can store in cookie. > So far the problem is clear. But after the login I have to send back > the session ID at every server side method call. My question: how can > I realize this? > I found this solution I put into parameter list of method; for example > void doSomething(String value, String sessionID); > But in this case I have to modify parameter list of every server side > methods, this is not an elegant solution... How can I do this job > without modifying methods? > For example add the session ID into URL as a GET parameter. But I > don't know how... > Or any idea? > I found this document (http://groups.google.com/group/Google-Web- > Toolkit/web/security-for-gwt-applications?pli=1) and at its end (near > at Protecting Your Application serction) there are some solution but > without code... :( > Thanks! > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---