c12c003485da26742d76b787bb1c7d148a4d58f5
rhead
  Thu Apr 28 19:04:04 2011 -0700
Updated several places to reflect the actual expiration times of custom tracks and BLAT results that are saved in sessions (redmine #3462).
diff --git src/hg/hgSession/hgSession.c src/hg/hgSession/hgSession.c
index 7dc9562..5881a49 100644
--- src/hg/hgSession/hgSession.c
+++ src/hg/hgSession/hgSession.c
@@ -688,64 +688,62 @@
 	}
     if (gotExpiredCT)
 	{
 	slSort(&expiredDbList, slNameCmp);
 	dyStringPrintf(dyMessage,
 		       "<P>Note: the session has at least one expired custom "
 		       "track (in database ");
 	for (sln = expiredDbList;  sln != NULL;  sln = sln->next)
 	    dyStringPrintf(dyMessage, "%s%s",
 			   sln->name, (sln->next ? sln->next->next ? ", " : " and " : ""));
 	dyStringPrintf(dyMessage,
 		       "), so it may not appear as originally intended.  ");
 	}
     dyStringPrintf(dyMessage,
 		   "Custom tracks are subject to an expiration policy described in the "
-		   "<A HREF=\"../goldenPath/help/customTrack.html\" TARGET=_BLANK>custom "
-		   "track documentation</A>.  In order to keep a custom track from expiring, "
-		   "you can periodically view the custom track in the genome browser.</P>");
+		   "<A HREF=\"../goldenPath/help/hgSessionHelp.html#CTs\" TARGET=_BLANK>"
+		   "Session documentation</A>.</P>");
     slNameFreeList(&liveDbList);
     slNameFreeList(&expiredDbList);
     }
 /* Check for saved blat results (quasi custom track). */
 char *ss = cartOptionalString(cart, "ss");
 if (isNotEmpty(ss))
     {
     char buf[1024];
     char *words[2];
     int wordCount;
     boolean exists = FALSE;
     safecpy(buf, sizeof(buf), ss);
     wordCount = chopLine(buf, words);
     if (wordCount < 2)
 	exists = FALSE;
     else
 	exists = fileExists(words[0]) && fileExists(words[1]);
 
     if (exists)
 	dyStringPrintf(dyMessage,
 		       "<P>Note: the session contains saved BLAT results.  ");
     else
 	dyStringPrintf(dyMessage,
 		"<P>Note: the session contains an expired reference to "
 		"previously saved BLAT results, so it may not appear as "
 		"originally intended.  ");
     dyStringPrintf(dyMessage,
-		   "BLAT results are subject to the same expiration policy as "
-		   "<A HREF=\"../goldenPath/help/customTrack.html\" TARGET=_BLANK>custom "
-		   "tracks</A>.  In order to keep BLAT results from expiring, you can "
-		   "periodically view them in the genome browser.</P>");
+		   "BLAT results are subject to an "
+		   "<A HREF=\"../goldenPath/help/hgSessionHelp.html#CTs\" TARGET=_BLANK>"
+		   "expiration policy</A>.");
     }
 }
 
 char *doUpdateSessions()
 /* Look for cart variables matching prefixes for sharing/unsharing,
  * loading or deleting a previously saved session.
  * Return a message confirming what we did, or NULL if no such variables
  * were in the cart. */
 {
 struct dyString *dyMessage = dyStringNew(1024);
 struct hashEl *cartHelList = NULL, *hel = NULL;
 struct sqlConnection *conn = hConnectCentral();
 char *userName = wikiLinkUserName();
 char *encUserName = cgiEncodeFull(userName);
 boolean didSomething = FALSE;