I assume that you are using RemoteServiceServlet. In ur login service
implementation put,

HttpServletRequest request = this.getThreadLocalRequest();
HttpSession session = request.getSession();
session.setAttribute("username",userName);

And in the main application Service implementation you can retrieve the user
name as:
HttpServletRequest request = this.getThreadLocalRequest();
HttpSession session = request.getSession();
String userName = (String)session.getAttribute("username");

Hope this helps.

On Wed, Jan 14, 2009 at 3:48 PM, newlis <hrd...@yahoo.com> wrote:

>
> Hmm, can u elaborate me a little more about this?
> I thought to use some cookies ,  but your proposal sounds nice also.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to