I'm setting a cookie in my GWT RPC Servlet:

public class NiueRpcServiceImpl extends RemoteServiceServlet
implements NiueRpcService {

      ....
      javax.servlet.http.Cookie c = new Cookie("SessionId", "");
      c.setValue("1234");
      c.setMaxAge(-1);
      HttpServletResponse httpServletResponse =
this.getThreadLocalResponse();
      httpServletResponse.addCookie(c);
      ....


But on the client side getCookie() always returns null:

       String sessionId = Cookies.getCookie("SessionId");
       if (sessionId != null){
             ...


If I use a sniffer, the cookie is in the header as expected, and if I
call setCookie("test") in the client code and then investigate the
Header, the test cookie looks the same as my SessionId cookie..

I'm hoping to set and clear the cookie on the server side, and the
client side picks it up and includes it in some of it's RPC calls.

Any help would be appreciated.
Cheers
Paul

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