I am using SmartGWT 2.5 Pro version.
I store an auth token on the client side that is provided by a login service. For now, I am setting this as a browser cookie on the client side using:
RPCManager rpc = new RPCManager(request, response);
Cookie[] cookies = request.getCookies();
so all of my RPC service implementations can verify user login, auth, roles, etc.
This is inefficient, right?, and I would prefer to have a universal wrapper on the client side that adds the auth token to every RPC call. Any suggestions for how to do this?