ba9df66e76908e3e1d2e3a16c9df0e74bd420eaf
galt
  Tue Feb 5 18:01:43 2019 -0800
oops. needs to save using id from userDb table, not the sessionDb table.

diff --git src/hg/inc/cart.h src/hg/inc/cart.h
index 37e5f11..8435ba6 100644
--- src/hg/inc/cart.h
+++ src/hg/inc/cart.h
@@ -84,30 +84,33 @@
  * Intended for updating cart before background CGI runs.
  * Use cartCheckout() instead. */
 
 void cartEncodeState(struct cart *cart, struct dyString *dy);
 /* Add a CGI-encoded var=val&... string of all cart variables to dy. */
 
 char *cartSessionVarName();
 /* Return name of CGI session ID variable. */
 
 char *cartSessionId(struct cart *cart);
 /* Return session id. */
 
 unsigned cartSessionRawId(struct cart *cart);
 /* Return raw session id without security key. */
 
+unsigned cartUserRawId(struct cart *cart);
+/* Return raw user id without security key. */
+
 char *cartSidUrlString(struct cart *cart);
 /* Return session id string as in hgsid=N . */
 
 char *cartUserId(struct cart *cart);
 /* Return session id. */
 
 void cartRemove(struct cart *cart, char *var);
 /* Remove variable from cart. */
 
 void cartRemoveExcept(struct cart *cart, char **except);
 /* Remove variables except those in null terminated except array
  * from cart.  Except array may be NULL in which case all
  * are removed. */
 
 struct slPair *cartVarsLike(struct cart *cart, char *wildCard);